Jamzjazz

Take 4 hit or miss inputs and output points

Mar 1st, 2021
919
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. points = 100
  2. userInput = "0"
  3. tries = 0
  4.  
  5. #Takes 4 hit or miss inputs separately adding 1 to tries each time
  6. while tries <= 4:
  7.     userInput = input()
  8.     if userInput == "hit":
  9.         points = points + 10
  10.     elif userInput == "miss":
  11.         points = points - 20
  12. tries += 1
  13.  
  14.  
  15. print(points)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×