Python Rock Paper Scissors not working | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Python Rock Paper Scissors not working

I made a rock paper scissors but it won’t work https://code.sololearn.com/c2zHsjkDC9D5/?ref=app

17th Jul 2023, 4:06 PM
Python Fan Alt
Python Fan Alt - avatar
10 Respuestas
+ 3
Read the error message. Look at the line that the error message hints at. Check the indentation in that line.
17th Jul 2023, 4:30 PM
Lisa
Lisa - avatar
+ 2
Line 36, I changed to opponent = "scissors" (With the indentation)
17th Jul 2023, 4:29 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Where did you get the code from?
17th Jul 2023, 4:32 PM
Lisa
Lisa - avatar
+ 2
The entire line is already there. Who wrote the code? Where did you get it from?
17th Jul 2023, 4:34 PM
Lisa
Lisa - avatar
+ 1
AdminBoy812 YT we use 'else' block when the all conditions are false and we don't put the condition in else block. See the else block, in else block you put the condition 'opponent== paper' .
17th Jul 2023, 4:32 PM
Sakshi
Sakshi - avatar
+ 1
AdminBoy812 YT in line number 36 just you print the any statement you want, don't put the condition.
17th Jul 2023, 4:35 PM
Sakshi
Sakshi - avatar
+ 1
Learn python course
17th Jul 2023, 4:40 PM
Sakshi
Sakshi - avatar
0
Guys can you just write the entire line for that part because idk what yall talking about
17th Jul 2023, 4:34 PM
Python Fan Alt
Python Fan Alt - avatar
0
Whats the condition?
17th Jul 2023, 4:39 PM
Python Fan Alt
Python Fan Alt - avatar
0
What is the condition in there
17th Jul 2023, 4:40 PM
Python Fan Alt
Python Fan Alt - avatar