@tesla809/

Scratch pad python

Python

No description

fork
loading
Files
  • main.py
main.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
total = 9135.00

rent = 200
cable = 100
light = 100
food = 200

monthly_bills_spent = rent + cable + light + food

rent_yearly = rent * 12
cable_yearly = cable * 12
light_yearly = light * 12
food_yearly = food * 12
bills_yearly = rent_yearly + cable_yearly + light_yearly + food_yearly

total_left_over = total - bills_yearly

monthly_left_over = total_left_over / 12

print('total:', total)
print('rent:', rent_yearly, 'cable:', cable_yearly, 'light:', light_yearly, 'food_yearly:', food_yearly)
print('bills yearly:', bills_yearly)
print('yearly left over:', total_left_over)

print('monthly left over:', monthly_left_over)
print('monthly spent:',  monthly_bills_spent)


print('\n', 'What matters:')
print('bills yearly:', bills_yearly)
print('yearly left over:', total_left_over)


print(7200 + 1935 == 9135.0)