Computer Science
Out of the following, find those identifiers, which cannot be used for naming Variables or Functions in a Python program:
- Price*Qty
- class
- For
- do
- 4thCol
- totally
- Row31
- _Amount
Python Funda
60 Likes
Answer
- Price*Qty ⇒ Contains special character *
- class ⇒ It is a keyword
- 4thCol ⇒ Begins with a digit
Answered By
36 Likes
Related Questions
What are literals in Python ? How many types of literals are allowed in Python ?
State True or False : "Variable declaration is implicit in Python."
Find the invalid identifier from the following :
- MyName
- True
- 2ndName
- My_Name
Which of the following is an invalid data type in Python?
- Sets
- Real
- Integer
- None of these