Computer Science, asked by subassr9670, 7 months ago

Which of he following can be used as valid .variable identifiers in python. (i) 4thsum (ii) total (iii) number# (iv) data

Answers

Answered by dreamrob
7

Answer:

Which of the following can be used as valid variable identifiers in python.

(ii) total

(iv) data

Rules for variable name:

  1. a variable name must start with an alphabet (A-Z, a-z) or an underscore(_)
  2. a variable name cannot start with a number
  3. a variable name can only contain alpha-numeric characters (A-Z, a-z, 0-9) and underscore (_)
  4. variable names are case sensitive

Examples:

name = "Priya"

num1 = 23

city_name = "Lucknow"

Similar questions