Computer Science, asked by rajatgupta4438, 8 months ago

All keywords in python are in : A. Upper case B. Lower case C. Capitalized D. None of the mention

Answers

Answered by anindyaadhikari13
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.

  1. False
  2. None
  3. True
  4. and
  5. as
  6. assert
  7. async
  8. await
  9. break
  10. class
  11. continue
  12. def
  13. del
  14. elif
  15. else
  16. except
  17. finally
  18. for
  19. from
  20. global
  21. if
  22. import
  23. in
  24. is
  25. lambda
  26. nonlocal
  27. not
  28. or
  29. pass
  30. raise
  31. return
  32. try
  33. while
  34. with
  35. 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
Math, 4 months ago