Learning Python: Conditional statements for loops - Deepstash
Learning Python: Conditional statements for loops

Learning Python: Conditional statements for loops

Conditional statements will always return 'True' or 'False', for example in the picture i made a list, added three strings, then for the condition for the while loop i said if these 2 string are in the 'my_list' then its true, and in the next lesson we will talk about 'and' and 'or' within python. But in any case when you are making a condition, just say it in your head and think will this return a boolean  

2

35 reads

CURATED FROM

IDEAS 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

python is a very good skill to learn and more and more companies are looking for people with this skill, why not teach it for free for everyone else since i knwo what to do

Similar ideas to Learning Python: Conditional statements for loops

Learning Python: IF statements

Learning Python: IF statements

As you can see in the image, we are working with conditional if statements. This is used to find out if something is True or False. As you can see i used '

Learning Python: Basic Mathematical Operators error

Learning Python: Basic Mathematical Operators error

So as you can see from the image we are using 2 variables, x and y. Like in the previous lessons explained about variables, x contains the string Hello World, what makes it a string is " " the use of these quotation marks. Next in y there is a integer value 10. Then i am adding them both together...

Use If-Then Statements

If-then plans can help us control our emotional responses to stress. Simply decide what kind of response you would like to have instead of feeling stress, and make a plan that links your desired response to the situations that tend to raise your blood pressure.

For example, "If I ...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates