num = 10
print(num)
#source code --> clcoding.com
Explanation:
Variable Assignment (num = 10)
num is the variable name.
= is the assignment operator, which is used to store a value in a variable.
10 is an integer value being assigned to the variable num.
Now, num holds the value 10 in memory.
Printing the Variable (print(num))
print() is a built-in function in Python that displays output on the screen.
num is placed inside print(), so the stored value (10) is printed when the program runs.
Output:
10
0 Comments:
Post a Comment