Skip to content
PyNoob
  • Docs

Docs

  • Introduction
  • Code Editors
  • Python Basics
  • Data Structures
  • Object-Oriented Programming (OOP)
  • Error Handling
  • File Handling
  • Database Integration
  • Miscellaneous

Quick Docs

  • args and kwargs
  • async and await
  • Asynchronous Programming
  • Classes
  • Class Methods
  • Assignment vs Comparision
  • Decorators
  • collections.defaultdict
  • dict.get
  • Dictionary Comprehension
  • Docstrings
  • dotenv file
  • Dunder methods

The assignment operator (=) is used to assign variables.

x = 5
print(x) # Prints 5

The equality operator (==) is used to compare values.

if x == 5:
print("The value of x is 5")
← Class MethodsDecorators →