number, is_prime = 19, True print(number) print(is_prime)
Here, the print statement prints the value of a variable. The above program should print the following output:
19 True
Similarly, we can assign a string or a float to a Python variable.
a = “John” b = 1.34 print(a) print(b)
The above program should print the following output:
John 1.34
Please note that we do not need to declare a variable before using it in Python. We can directly create a variable and assign a value to it.








































0 Comments