I don't know how to convert numbers into characters.

Asked 2 years ago, Updated 2 years ago, 16 views

I tried outputting it as shown in the image, but it didn't work.After all, if, elif and later are not good.Please give me a solution.It's rock-paper-scissors programming.As Is

I want to print like this

python

2022-09-29 22:24

1 Answers

I will refer to the following and
https://stackoverflow.com/questions/34968112/how-to-give-jupyter-cell-standard-input-in-python

I was able to put a print after input and execute it.There was no problem with your code.

import random
comp=random.randint(0,2)
n=int(input("Choose your hand""))
print(n)
# Cell separation now


2022-09-29 22:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.