Lesson 04: You've Been Reassigned - nolenfelten/Codecademy-Python-Notes GitHub Wiki
Now you know how to use variables to store values.
Say my_int = 7. You can change the value of a variable by "reassigning" it, like this:
my_int = 3
Instructions:
Try it and see! Change the value of my_int from 7 to 3 in the editor.
All you need to do is type 3 after the equals sign on line 8.
# my_int is set to 7 below. What do you think
# will happen if we reset it to 3 and print the result?
my_int = 7
# Change the value of my_int to 3 on line 8!
my_int = 3
# Here's some code that will print my_int to the console:
# The print keyword will be covered in detail soon!
print my_int