Which of he following can be used as valid .variable identifiers in python. (i) 4thsum (ii) total (iii) number# (iv) data
Answers
Answered by
7
Answer:
Which of the following can be used as valid variable identifiers in python.
(ii) total
(iv) data
Rules for variable name:
- a variable name must start with an alphabet (A-Z, a-z) or an underscore(_)
- a variable name cannot start with a number
- a variable name can only contain alpha-numeric characters (A-Z, a-z, 0-9) and underscore (_)
- variable names are case sensitive
Examples:
name = "Priya"
num1 = 23
city_name = "Lucknow"
Similar questions