Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (55.6k points)

a. spam23

b. SPAM23

c. 23spam

d. spam_23

2 Answers

0 votes
by (41.4k points)

The option c (23spam) is a bad Python variable name. Variable name can be alpha-numeric and even with but variable names cannot start with numeric characters.

If you are looking for an online course to learn Python, check out this Python Certification program by Intellipaat.

0 votes
by (1.3k points)

 Python variable can be defined by using AlphaNumeric characters and “_”. Variables cannot be initialized taking the first character as Numeric Value.


 So from the above option C is a bad Python Variable name as it starts with a number.

Related questions

0 votes
3 answers
0 votes
2 answers
0 votes
2 answers
asked Feb 9, 2021 in Python by Rekha (2.2k points)
0 votes
1 answer
asked Feb 9, 2021 in Python by Rekha (2.2k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...