################### # Homework 1.5 # Adam Brandeis # 02/09/2014 ################### #!/usr/bin/python this_var_1 = 500 this_var_2 = 10 print this_var_1 + this_var_2 # total should add var1 + var2 to = 510 this_var_3 = ' hello world! ' this_var_4 = ' looking good! ' print this_var_3 + this_var_4 this_var_5 = this_var_3.capitalize() # this is to capitalize the first letter of each word this_var_6 = this_var_4.upper() # this will change the var to all uppercase #print this_var_5 # simple test to verify this var 5 output #print this_var_6 # simple test to verify this var 6 output print this_var_5 + this_var_6
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