VintageRice

[College] - Darts

Apr 21st, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. #   Date Created: 16/04/2015
  2. #   Author: Kyle Minto
  3. #   Darts Score
  4.  
  5. name = raw_input("What is your name?: ");
  6. score = [];
  7. total = 0;
  8.  
  9. print("\n");
  10.  
  11. for i in range(0, 3):
  12.     a = input("Score for dart #" + str(i) + ": ");
  13.     score.insert(i, a);
  14.     total += a;
  15.  
  16. print("\n");
  17.  
  18. print(name + " scored: " + str(total));
  19.  
  20. if(total <= 100):
  21.     print("You need to practice");
  22. elif(total <= 150 and total > 100):
  23.     print("That's a good score");
  24. else:
  25.     print("That's a great score!");
Advertisement
Add Comment
Please, Sign In to add comment