-
Notifications
You must be signed in to change notification settings - Fork 0
/
trust_fund_bad.py
38 lines (28 loc) · 1.27 KB
/
trust_fund_bad.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Trust Fund Buddy - Bad
# trust_fund_bad.py
# Intro to debugging - demonstrates syntax, runtime, and logical errors
# Instructions: Step through this program line-by-line, as if you were the Python interpreter.
# As you identify errors, categorize them as Syntax Errors, Runtime Errors, or Logic Errors.
# Run the program to see how Python reacts to the error, read the entire error message,
# and then debug them so the program works as intended.
print(
"""
Trust Fund Buddy
Totals your monthly spending so that your trust fund doesn't run out
(and so you aren't forced to get a real job).
Please enter the requested monthly costs. Since you're rich, ignore pennies
and use only whole dollar amounts.
""")
name = input("What is your name? ")
car = input("Lamborghini Tune-Up(s): "))
rent = input("Manhattan Apartment: ")
jet = input("Private Jet Rental: ")
gifts = input("Extravegant Gifts: ")
food = input("Dining Out: ")
staff = input("Staff (butler, chef, driver, assistant):
guru = input("Personal Guru and Coach: ")
games = input("Computer Games: ")
car + rent + jet + gift + food + staff + guru + games = total
prinf()
print(name.title(), "'s Total Monthly Expenses: $" + total)
input("/n/nPress the enter key to exit.")