#variables print "this program is a demo of Variables" v=1 print "the value of v is now", v print v v=v+1 print "v now equals itselft plus one, makeing it worth", v v= v * 2 print "v now equals itself time two, making it worth", v = 51 print "v cna stone any numberical value, to be used else where" print "for example in the sentence, v is worth", v print "v times 5 equals", v*5
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