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'?
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers