0% found this document useful (0 votes)
6 views4 pages

Python Notes: Multiple If Statements

The document provides notes on multiple if statements in Python, explaining that they allow for checking all conditions independently of previous statements. It includes an example of prompting the user about the weather and checking if it is sunny. The notes emphasize that each if statement is evaluated regardless of the outcomes of prior conditions.

Uploaded by

pamrat396
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Python Notes: Multiple If Statements

The document provides notes on multiple if statements in Python, explaining that they allow for checking all conditions independently of previous statements. It includes an example of prompting the user about the weather and checking if it is sunny. The notes emphasize that each if statement is evaluated regardless of the outcomes of prior conditions.

Uploaded by

pamrat396
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

PYTHON NOTES

MANYA SONI
MULTIPLE IF STATEMENTS
• MULTIPLE IF STATEMENTS ARE USED WHEN YOU WANT TO CHECK
ALL THE CONDITIONS. EVEN IF THE PREVIOUS STATEMENT WAS
TRUE,OTHER IF STATEMENTS WILL STILL BE CHECKED. IT IS NOT
DEPENDENT ON THE RESULT OF THE PREVIOUS CONDITION.
• Print(‘how is the weather?’)
• weather = input()
• If weather ==‘sunny’:
• Print

You might also like