codescracker


python

Python Identifiers



« Previous Tutorial Next Tutorial »


Here you will learn about identifiers in Python, that is, what are identifiers in Python with its example.

Identifiers in Python, is simply a name given to identify the variable, function module, class, or any other object in the Python program.

Rules to Write Identifiers in Python

In Python, you can name an identifier with:

Note - Python is case sensitive language, therefore Codescracker and codescracker are the two different identifiers in Python.

Python Identifiers Example

Here is an example illustrates identifiers in python.

This program also shows you that python is a case sensitive language:

while True:
	print("Enter 'x' for exit.")
	codescracker = input("Enter your name: ")
	Codescracker = input("Enter your friend's name: ")
	if codescracker == 'x':
		break
	else:
		print(Codescracker,"is your friend.\n")

Here is the sample run of the above python program:

python identifiers

« Previous Tutorial Next Tutorial »








Tools
Calculator

Quick Links
Signup - Login - Give Online Test