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.
python
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
© 2024 OneMinuteCode. All rights reserved.