1.

Which of the following is an invalid variable?(a) my_string_1(b) 1st_string(c) foo(d) _The question was posed to me in an interview.The question is from Variable Names topic in section Variable Names, Operators, Data Types & Numeric Types of Python

Answer»

The correct choice is (B) 1st_string

Best explanation: VARIABLE NAMES should not START with a number.



Discussion

No Comment Found

Related InterviewSolutions