Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- counter = 0;
- userinput = ""
- print ("Get ready! You are about to be quizzed three questions on hardware. Answer each question or statement with either 'true' or 'false' in lowercase. ");
- while True:
- userinput = input("Is a keyboard an input device? ");
- if userinput == "true":
- counter += 1
- break;
- print(counter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement