Mark As Completed Discussion

In Python, variables can be directly initialized using a variable name and assigning it a value. The code block below shows the creation of the variable number which has the value 12.

1var number = 12;
2console.log(number); // prints 12

If this code runs on a Python interpreter, the value that you stored earlier in number is successfully displayed.

Let's test your variable knowledge with some short questions!