Challenge: Declaring a Variable

Test yourself and implement what you have learned so far in this challenge.

Problem Statement

In this challenge, your task is to declare an immutable variable myFirstVariable of an integer type and initially assign it the value 100. You then need to print myFirstVariable.


The input is the variable myFirstVariable.


The output will be the value assigned to myFirstVariable.

Sample Input


Sample Output


Test Yourself

Write your code in the given area.

If myFirstVariable is not immutable or if you assign it a value other than 100, the test will fail and underneath the Actual Output column, it will display Incorrect.

Try the exercise by yourself first, but if you get stuck, the solution has been provided. 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