Python: Eighteen - Deepstash
Python: Eighteen

Python: Eighteen

1 IDEA

15 reads

Python: Eighteen

🚶 On a walk

Keep reading for FREE

Learning Python: AND/OR conditions

As you can see in the image there is 2 tables, 1 means true and 0 means false.

As you can see AND needs both to be true to be True, and OR only needs one to be true to be True.

When you create a condition for a loop or for a condition, you can add as many conditions as you want as long over all it will return a boolean value. So imagine not using a AND/OR and you make 10 if statements to check each condition, well with this you can do it in one statement.

Something new for you, in the second statement its returned True, why? answer on discord or leave a comment on why you think its True

2

15 reads

2

It's time to
Read like a Pro.

Jump-start your

reading habits

, gather your

knowledge

,

remember what you read

and stay ahead of the crowd!

Save time with daily digests

No ads, all content is free

Save ideas & add your own

Get access to the mobile app

2M+ Installs

4.7 App Rating

CURATED BY

samuelbancroft

Keep reading, keep studying, the more you learn the more you change. If you are doing the Python lessons please join this discord channel https://discord.gg/kugXx9KY but please follow the rules

CURATOR'S NOTE

Lets look at the importance or AND/OR's