Computer Science, asked by samarganesh2016, 3 months ago


What are the rules for naming a variable in Python?​

Answers

Answered by Bad0BoY
5

Answer:

hlo✔

Officially, variable names in Python can be any length and can consist of uppercase and lowercase letters ( A-Z , a-z ), digits ( 0-9 ), and the underscore character ( _ ). An additional restriction is that, although a variable name can contain digits, the first character of a variable name cannot be a digit.

be

Answered by chetanbaviskar72
6

Explanation:

variable names in Python can be any length and can consist of uppercase and lowercase letters ( A-Z , a-z ), digits ( 0-9 ), and the underscore character ( _ ). An additional restriction is that, although a variable name can contain digits, the first character of a variable name cannot be a digit.

Similar questions