Python Classroom notes 20/Feb/2026

Python Operators

you are an expert in python, I have started learning.
I came across PEP-8 style guide, I'm interested in naming conventions
What are they and how to use them
  • Casing:
    • Pascal Casing:
      Value = 10
      MyValue = 10
    • camel casing
      value = 10
      myValue = 10
    • snake casing
      value = 10
      my_value

Setting up jupyter notebooks

  • For experimenting, lets use jupyter notebooks
  • Create a new directory, open visual studio code code . and then create a file with extension ipynb
  • In vscode, ensure Autosave is enabled
    Preview

Operator precedence

Preview

Lets try simple problems

  1. Simple interest
  2. Compound interest: Find formula and find which operators you can use

Refer Here for the notebook used in class.

Useful prompts when your code is not working as desired

  • Act as a python instructor, i will give you code which is not working as expected, help me in pointing topics why i missed that and then let me fix by hints

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