All keywords in python are in : A. Upper case B. Lower case C. Capitalized D. None of the mention
Answers
Answered by
0
Answer:
- All keywords in python are in b) Lower Case.
Explanation:
Keywords are reserved words in python that cannot be used for some other purposes like in case of naming a variable, function etc.
Python has a wide range keywords. They are as follows.
- False
- None
- True
- and
- as
- assert
- async
- await
- break
- class
- continue
- def
- del
- elif
- else
- except
- finally
- for
- from
- global
- if
- import
- in
- is
- lambda
- nonlocal
- not
- or
- pass
- raise
- return
- try
- while
- with
- yield
Except for True, False and None keywords, the remaining keywords are written in lowercase.
We can get the list of keywords using the following code.
import keyword
print(keyword.kwlist)
So, the correct answer is option B) Lower case.
Similar questions