Computer Science, asked by nikita4341, 2 months ago

The following code is used to create a variable and store a value. Why will it NOT work? my number = 36

A. The variable can't store a number
B. A variable name cannot have any spaces
C. There variable name can't be called my number
D. The equal’s symbol should be at the beginning of the line​

Answers

Answered by kingAnshupathak
2

Answer:

B: A variable name cannot have any spaces

Explanation:

If you try running this basic python code

my number = 36

print(my number)

It will give you an error for invalid syntax on my number as a variable can not have spaces.

If you want to separate two words you could use "_".

Answered by jagratipandey
2

B. A variable name can't have any space

Similar questions