28th Apr 2022, 2:34 PM
Kaushik
Kaushik - avatar
9 Réponses
+ 3
Decode input function bydefault returns string So just input() is enough If you take numeric value like 5 as input, then input function will consider it as a string. So to read int value we have to do this: int(input()) Kaushik Start variable name with small letter as Class name starts from Capital letter https://code.sololearn.com/cx968Cj5UcAD/?ref=app
28th Apr 2022, 2:54 PM
A͢J
A͢J - avatar
+ 1
ahh now i get it. change the variable "Input" = to Input = str(input()) comp_turn = ["Rock" , "Paper" ,"Scissors"]
28th Apr 2022, 2:50 PM
Decode
Decode - avatar
+ 1
Thanks Decode
28th Apr 2022, 2:51 PM
Kaushik
Kaushik - avatar
+ 1
thanks AJ! i think i can improve my own rock paper scissors now
28th Apr 2022, 2:57 PM
Decode
Decode - avatar
0
i think its forgotten parentheses line 2
28th Apr 2022, 2:38 PM
Decode
Decode - avatar
0
Don't doubt yourself Decode test your hypothesis and make sure, then answer with certainty
28th Apr 2022, 2:56 PM
Slick
Slick - avatar
0
slick yeah yeah i did
28th Apr 2022, 2:59 PM
Decode
Decode - avatar
0
Maybe you forget after "s quote and : also you have to write block of code after if statement or use pass keyword to pass
28th Apr 2022, 9:59 PM
CodeWarrior
CodeWarrior - avatar
0
code warrior its already fixed
29th Apr 2022, 3:38 AM
Decode
Decode - avatar