What are the rules for naming an identifier in Python? Give an example of a valid and an invalid identifier

Answer:

Answer by student

An identifier is a name given to a variable, function, class, or module in Python. 

The rest of the post is locked. Join Teachoo Black to see the full post.

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, Social Science, Physics, Chemistry, Computer Science at Teachoo.