hi guys! i'm successful in creating my first kbc game with one question with integers and strings as input!well i'm a strater and please help because i want to loop it with break if lose and continue with win after first question.simply i want to continue it and want to know how?please give me the modified script so i can move in my project!here's the script!pls help!
Code:
question1 = "who was the first president of india?" option1 = "a.rajendraprasad" option2 = "b.sonia gandhi" option3 = "c.indira gandhi" option4 = "d.jawaharlalnehru" print question1, option1,option2,option3,option4 first = raw_input("enter your answer!").lower() a = option1 if first == 'a': print 'you win!' else: print 'you lose!'
Comment