Computer Science for IGCSE & O level - Programming (Section 3 - No. 23)

Which of these is an example of a valid variable assignment in Python?
123 = x
name = "John"
if = 10
my variable = 5

Explanation

Variable names must start with a letter or underscore and cannot be a reserved keyword.

Comments (0)

Advertisement