p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
First Steps
Assign a value to a variable
Assign a value to a variable
Here, we declare the variable
num
. But it does not have a value yet. Assign a value to it and run the code.
reset
num =
print(num)
Python
Setting up Python environment...
Output