Learning Python: IF statements continued - Deepstash
Learning Python: IF statements continued

Learning Python: IF statements continued

As you can see in this image i am using variables this time in the if statement. As was mentioned in the first part about if statements that they only return True or False. I have 2 if statements but only one is printing out to the console, this is because only one of them is true, join the dicsord channel and let me know why the second is not printing.

If statements can be used for alot of different situations, for example from simple text based games, to data processing to AI, IF statements are fundemental in python.

Dont forget to join discord if you need help

https://discord.gg/XZQwPwaS97

3

41 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

Similar ideas to Learning Python: IF statements continued

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: Join Discord

Learning Python: Join Discord

Discord link

Just copy and paste the link into your web browser on your computer or mobile device.

Join this discord channel if you are doing the python lessons, this way you can communicate with me if you need any help.

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...

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