1.

Which of the following is an invalid statement?(a) abc = 1,000,000(b) a b c = 1000 2000 3000(c) a,b,c = 1000, 2000, 3000(d) a_b_c = 1,000,000I got this question in class test.The origin of the question is Variable Names in chapter Variable Names, Operators, Data Types & Numeric Types of Python

Answer»

The correct ANSWER is (b) a b c = 1000 2000 3000

To EXPLAIN I would SAY: Spaces are not allowed in variable names.



Discussion

No Comment Found

Related InterviewSolutions