← Back to the lesson: Variables
Change Variable
The exercise
Create a variable 'x' with value 5, then change it to 10, and display the result.
The output should show only 10 (the final value).
Starter code
# Create x with value 5 / Создайте x со значением 5
x = 5
# Change x to 10 / Измените x на 10
# Display x / Выведите x
Write the code in the browser and run it — no installation needed.