Vidyalelo
Python · Q45

Python Introduction and basic

Programming · Python · question 45

Q45

Which one of the following is not a keyword in Python language?

A.
pass
B.
eval
Answer
C.
assert
D.
nonlocal

Answer: Option B

Solution

Answer: Option B
Solution:
In Python, keywords are reserved identifiers that have special meanings and purposes within the language.
eval is not a keyword in Python; rather, it is a built-in function used to evaluate a Python expression stored in a string.
Keywords like pass, assert, and nonlocal have specific meanings in Python and are reserved for special purposes within the language.
Therefore, the correct option is Option B: eval.