my_int = 12 mike_int = 12 mikes_int = 12 print my_int+mike_int+mikes_int each_int = "Gautam" my_age = 8 g_int = "anirudh" my_age = 9 print "My name is %s. My age is %d" %(beach_int, my_age) beach_int = "Kathir" my_age = 34 print beach_int.upper() print beach_int.lower() print len(beach_int) print beach_int[1]
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