name = input("What is Your Name?") print("Hi", name) print("You do 2 chores per week. You get 5 dollars for each chore.") print("I wonder what the answer is. Can you help me figure out how much money you get over a week?") v1 = 2; v1 = v1 *5 print(v1) print("Thank You", name) print("Your Allowance right now is 10 dollars", name) print("One week later....") print("You have done 3 chores this week", name) print("Now since you've done 3 chores, you now have 15 dollars!") print("Your Allowance is now 15 dollars", name)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question