Share your repls and programming experiences

← Back to all posts
Saarusan (7)

sorry i couldn't add more questions it wasn't working and comment down more what animal do you like more tiger or lion.

ApoorvAgrawal (14)

Instead of doing:
ans = input('Are you ready to play (yes/no): ')
score = 0
total_q = 2
if ans.lower() == 'yes':

you could do:

if ans == yes:

Saarusan (7)

if you want you could ask for edit access to fix it
I've tried adding more questions 3 times and it didn't work