Python Programming - Variables - Discussion

Discussion Forum : Variables - General Questions (Q.No. 4)
4.
Which of the following is the correct way to assign a value of 5 to a variable called 'x'?
x = 5
int x = 5
var x = 5
def x = 5
Answer: Option
Explanation:
In Python, you can assign a value to a variable using the equal sign = . The variable name comes first, followed by the value to be assigned.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.