Challenge: Defining Variables
In this challenge, you are required to make variables.
We'll cover the following
Problem Statement
- Declare a variable
x
and store value 1000 in it. - Declare a variable
y
and store value “Programming” in it - Print the values of
x
andy
- Change the value of x to 1100
- Print the values of
x
andy
Output
The output of the code should be:
x:1000
y:Programming
x:1100
y:Programming
Coding Exercise
Write your code below. It is recommended that you try solving the exercise yourself before viewing the solution.
Note: There is a
test
function given in the code for testing purposes. Do not modify it.
Good luck!🤞
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy