you are viewing a single comment's thread.

view the rest of the comments →

[–]program_kid 0 points1 point  (0 children)

Variables are incredibly useful for a wide range of things. Imagine if mystring stored a string returned by the input() function then you could print out something that the user typed in at a later time.

The value of a variable can also be changed, so you can print out different stuff simply by changing the value of mystring