menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Quark's Ou...
source image

Dev

4d

read

362

img
dot

Image Credit: Dev

Quark's Outlines: Python Names & Keywords

  • A Python name is also called an identifier, used to represent variables, functions, or objects in Python code.
  • Python names can use uppercase and lowercase letters, digits, and underscores, but cannot start with a digit.
  • Python names are case-sensitive, allowing distinct names with different casing.
  • Special characters like spaces, @, $, &, or - are not allowed in Python names.
  • Python keywords are reserved words with fixed meanings that control code execution.
  • Using a Python keyword as a name results in a syntax error.
  • Soft keywords in Python have specific functions within certain contexts, like match and case.
  • Python employs special patterns for names like double underscores for built-in actions.
  • Understanding Python names and keywords is crucial to writing error-free and readable code.
  • Python's naming rules have evolved over time, influenced by various programming languages and grammar theories.

Read Full Article

like

21 Likes

For uninterrupted reading, download the app