Blog Details

img
Data Science

How do you identify an identifier in Python

Spoke Right / 16 Nov, 2023

Python Identifiers:

All the variables, class, object, functions, lists, dictionaries etc. in Python are together termed as Python Identifiers. Identifiers are the basis of any Python program. Almost every Python Code uses some or other identifiers.

Rules for using Python Identifiers:

  • An identifier name should not be a keyword.
  • An identifier name can begin with a letter or an underscore only.
  • An identifier name can contain both numbers and letters along with underscores (A-z, 0-9, and _ ).
  • An identifier name in Python is case-sensitive i.e, sum and Sum are two different identifier.

Example : Printing “HELLO WORLD” in python using Interactive Mode and using a Variable.

0 comments

Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0