Python Classroom notes 14/Dec/2024

Python

  • Python is a Programming language which is Developed by Guido van Rossum
  • Zen of Python
  • Python is an open source language, Python new features or any changes are done with PEP (Python Enhancement Proposal)
  • Python is used every where
    • CLI
    • Web Applications
    • Scripting
    • AI/ML
    • Data
  • Python has different Flavors
    • Python (CPython): This is most popular
    • Jython (Implemented in Java)
    • IronPython (Implemented in .net)

How python Works

  • How it looks like
  • How Python Runs the code
  • Python installation also will have a component memory manager which is used for Automatic Garbage Collection.

References

  • Online references
  • Book References
    • Python in a nutshell
    • Learning Python
    • Fluent Python
    • Headfirst python

Concepts of programming

  • Data types
  • Operators
  • Expressions
  • Loops
  • conditionals

Python Data Types

Numeric Data types:

Naming Conventions

  • For Naming variables we have following Conventions (irrespective of language)
    • Pascal Casing:
      • First Letter of a variable has to be Upper Cased
      • If your Variable is Multi Word then each word first Letter has to be Upper Case
      • Examples:
        • if you want to a name variable test: Pascal casing Test Test = 100
        • if the name of the variable is mytest: Pascal Casing MyTest
    • Camel Casing
      • First Letter of a variable has to be lower Cased
      • If your Variable is Multi Word then apart from first work all others word first Letter has to be Upper Case
      • Examples:
        • if you want to a name variable test Camel casing test test = 100
        • if the name of the variable is mytest: Camel Casing myTest
    • Snake Casing
      • First Letter of a variable has to be lower Cased
      • All words start with small case using _ as seperator
      • Examples:
        • if you want to a name variable test Snake casing test test = 100
        • if the name of the variable is mytest: Snake Casing my_test
  • For Python naming Conventions Refer Here
  • Variables will use Snake casing

Python Operators

  • programiz Refer Here
  • Arthimetic and Assignment Operators
  • Findout Numeric Operators in Python
  • Try the following
    • area of circle by passing radius = 5
  • When we write an Expressions if it has multiple operators programming languages evaluate the one operator after another based on priority
  • This priority is defined as operator precedence
  • Examples
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%