UrbanPro
true
default_background

Learn Python Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors
✕

Search in

Identifiers in Python Programming

P
Pallavi R.
10/10/2025 0 View Comments0

Identifiers:

These are the names that are used to identify the variables, functions, classes, modules or other objects. Whenever we define something in python and give it a name then we call it as an identifier.

Identifier Rules:

  1. Identifier cannot be a keyword.
  2. It is case sensitive.
  3. It may contain a single alphabet or a word or alpha-numeric.
  4. It cannot start with a digit, but can have a digit in the middle or last .
  5. It cannot have any other special character apart from ‘_’(underscore).
  6. It cannot start with a space or have a space in the middle.
  7. It can be of any length, but should be meaningful and readable.

Best Practices of Naming Identifiers

  • Use snake_case for variables and functions:

Eg: 

student_name, calculate_total, average_score

  • Use PascalCase for class names:

Eg: 

class StudentDetails:

pass

  • Use UPPERCASE for constants:

Eg:

PI = 3.141

  • Choose meaningful names:

Eg: 

x = 10 # vague
marks_obtained = 10 # better

0 Dislike
Follow 1 Loading Spinner
Default Profile Photo

Please Enter a comment

Submit

Other Lessons for You

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...
Profile Photo

Simulation of a die-roll:Usage of random module
Task:Simulation of a simple die-rolling game,where we keep rolling a six-sided die until we have rolled a total of 20. To simulate a six-sided die roll, we need a way to generate a random integer between...
Profile Photo

Personalise touch of training & learning
We all are in countinous learning phase in life. Day to day we are learning new things,new language words,new faces,new gazets by all means of modes like reading books,newspapers,watching TV,movies,meeting...
S

Smartnub Softsolutions

0 0
View Comments0

Writing Simple programs in Python(cont.)
To start writing simple programs in Python, we have to know firstly the SW development process and then we also have to know a bit about the language in which we wish to code,in this case,python, to get...
Profile Photo

File Handling in Python - Basic Concept
File (Flat) Handling in Python Types of files in python: 1: Text file: Stores data in the form of characters. Customarily used to store text/string data. 2: Binary file: Stores data in the form of bytes....
Profile Photo
X

Looking for Python Training Classes?

The best tutors for Python Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Python Training with the Best Tutors

The best Tutors for Python Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more