Python Classroom notes 08/Jun/2026

Indentation

Conditionals

  • Basic idea is selective execution.
  • Refer Here for conditionals
  • syntax
if <conditonal expression>:
    ....
    ....
    ....
  • To support binary
if <conditonal expression>:
    ....
    ....
    ....
else:
    ....
    ....
    ....

  • To support one execution out of multiple possibilities
if <condition expression>:
   ....
   ....
elif <conditional expression>:
   ....
   ....
elif <condition expression>:
   ....
   ....
else:
   ....
   ....

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