Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Displaying values
8. Assigning new values to variables
The print function
List basics


Great! You can change the values of variables at any moment. Take a look:

current_age = 25
current_age = current_age + 1 

The value of the current_age variable is 25. In the second line it gets increased to 26. If you want to change the value of your variable, simply use the equals operator (=) again.


As you can see, we've already created a variable named mood and assigned the string 'I feel bad today' to it. Assign a new value to the mood variable: 'I feel great today.'.