C&D
just like indentation capitalisation can also change the code.
True and False are always capital. On the other hand for, and, in etc are lowercase.
Correct answer should be A and B
Python Reserved Words List - Your Complete Guide
There is a restriction while naming identifiers that there are some restricted words that are built-in to Python which cannot be used as an identifier. Python reserved words (also called keywords) a predefined meaning and syntax in the language which Python uses for its syntax and internal processing. In this tutorial, we will discuss what those keywords are.
Table of contents
Reserved words
Keywords
Display all keywords
Check if the name is included in the reserved word list
Closing Thoughts
Reserved words in Python
Here is the list of all the reserved words in Python.
Note - This list may change with different versions of Python. Python 3 has 33 while Python 2 has 30 reserved words.
True elif in try
and else is while
as except lambda with
assert finally nonlocal yield
break for not
class form or
continue global pass
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Valcon_doo_NoviSad
1 year, 1 month agoEllo2023
1 year, 5 months agoArulkumar
1 year, 7 months agodicksonpwc
1 year, 7 months agodicksonpwc
1 year, 8 months agonoobplayer
1 year, 8 months agomacxsz
2 years, 7 months agoAtulVSharma
3 years, 1 month ago