State True or False

"In Python, keywords are case-sensitive and must be written in lowercase."

Answer:

Answer by student

False

Detailed answer by teachoo

  • In Python, keywords are reserved words that have a special meaning and purpose in the language.
  • Keywords cannot be used as identifiers , which are names given to variables, functions, classes, etc.
  • Keywords are case-sensitive , which means they must be written exactly as they are defined by the language. For example, if , else , while , for , etc. are valid keywords, but IF , Else , WhILE , fOR , etc. are not.
  • However, keywords are not always written in lowercase. Some keywords have mixed case , such as True , False , None , and , or , not , etc. These keywords must also be written exactly as they are defined by the language, otherwise they will be treated as identifiers. For example, true , false , none , And , Or , Not , etc. are not valid keywords, but valid identifiers.
  • Therefore, the statement “In Python, keywords are case-sensitive and must be written in lowercase.” is false .

So, the correct answer is False .

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo