DEV Community

ONEatm760torr
ONEatm760torr

Posted on

Python important points

  • Var type is decided at runtime(Dynamic Typing)
  • id() - The id() function returns a unique id for the specified object. All objects in Python have their own unique id.
  • Immutable Objects - int, float, str, tuple, Mutable Objects - list, dict, set
  • Python has no true constants.
  • input() returns string
  • Multiple Inputs in One Line, a, b = input().split()

  • with open("data.txt", "r") as f:
    data = f.read()`
    Auto-close, Safe

Top comments (0)