Python Classroom notes 19/Feb/2026

Program

  • Is set of instructions and all necessary values will be stored in memory.
  • To specify the size of memory to be allocated, languages use data types.
  • Depending on data type, your memory size might be
    • static
    • dynamic
  • depending on type (Static/dynamic) when we change value same memory can be used in static and new memory is required in dynamic.
  • static data types lead to mutable memory and dynamic data types lead to immutable memory

References

REPL in python

  • REPL stands for Read Evaluate Print and Loop
  • To launch repl open terminal and type python
    Preview

Data types

you are an expert in python.
I'm a beginner learning python.
Explain me what datatypes are, different datatypes in python.
When to use what with examples one after another
  • Languages can be categorized as two types

    • statically typed programming languages (c, C++, java, C#)
    • dynamically typed programming languages (python, javascript)
  • Common datatypes

    • numbers:
      • integers
      • float
      • vectors
    • text
      • string
    • boolean
  • Variable: A variable refers to a memory location with an alias

age = 24
# allocate memory for 24 and i would be referring that with age

name = 'ram'
# allocate memory for 'ram' and i would refer that as name

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading