Share your repls and programming experiences

← Back to all posts
trivia
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.

Commentshotnewtop
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:

ans=input().lower
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