Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def hole():
- par = int(input('What is the par for the hole?\t'))
- strokes = int(input('How many strokes did you take?\t'))
- return strokes - par
- def main():
- total_score = 0
- while True:
- hole_score = hole()
- total_score += hole_score
- print()
- print('Your score for the hole is: {}'.format(hole_score))
- print('Your total score is: {}'.format(total_score))
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement