Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. counter = 0;
  2. userinput = ""
  3. 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. ");
  4. while True:
  5. userinput = input("Is a keyboard an input device? ");
  6. if userinput == "true":
  7. counter += 1
  8. break;
  9. print(counter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement