Why does this not work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
26th Jan 2018, 12:21 PM
Raphael Shay
Raphael Shay - avatar
5 Answers
+ 4
Ahem... input() is a built-in Python function that takes input from stdin. The issue is that you need to add a + between the string and random choice in the print function on the 6th technical line.
26th Jan 2018, 12:31 PM
LunarCoffee
LunarCoffee - avatar
+ 2
Thanks!
26th Jan 2018, 12:34 PM
Raphael Shay
Raphael Shay - avatar
+ 2
It's public
26th Jan 2018, 2:21 PM
Raphael Shay
Raphael Shay - avatar
+ 1
Hey, can you make your code public (so I can comment)? There's an easier way to check for string equality, use: if x.lower() == "rock": # statements in place of: if x == "rock" or x == "Rock" or x == "rOck"...
26th Jan 2018, 2:14 PM
LunarCoffee
LunarCoffee - avatar
- 2
How could I achieve more XPs?
27th Jan 2018, 11:44 AM
Ankush Dhondge
Ankush Dhondge - avatar