202k views
13 votes
Which statement assigns the value 140 to the variable streetNumber in Python?

streetNumber = 140
streetNumber! = 140
street number = 140
StreetNumber == 140

User Shally
by
3.9k points

1 Answer

8 votes

Answer:

Step-by-step explanation:

Option 1 (streetNumber = 140) is right one.

Because we use = symbol for assigning a value. It is also called as assignment operator. We didn't selected the option 3 which is street number = 140 because variable name donot contain any space.

User Bazooka
by
4.1k points