Conditional Statements (if, elif, else) in Python - Beginner Python Tutorial #2

Publié le: 01 mars 2018
sur la chaîne: Keith Galli
54,937
1.2k

Second video in my python tutorial series. In this video we go over everything related to conditional statements in python. If you have any questions feel free to comment down below :)

Python Command Cheat sheet:
https://www.cheatography.com/paul-ben...

Link to previous video:
   • Math & Variables in Python - Beginner Pyth...  

Don't forget to SUBSCRIBE to not miss any future tutorials!

-------------------------
Challenge problem I asked at the end of the video:
Write a set of conditional statements to find whether or not a number is a “special” number

Special numbers are defined as numbers less than 100 or greater than or equal to 300 that are perfectly divisible by 3, 7, or both

Print out “Divisble by both” if special number divisible by both 3 & 7

Print out “Divisble by 3” if special number divisible by 3, but not 7

Print out “Divisible by 7” if special number divisible by 7, but not 3

#Print out “Not a special number” otherwise

-------------------------
PYTHON TUTORIAL SERIES:

Why Learn Python? +Setup:    • Why Should you Learn Python? - Simple Inst...  

1. Math & Variables:    • Math & Variables in Python - Beginner Pyth...  
2. Conditional Statements (if, elif, else):    • Conditional Statements (if, elif, else) in...  
3. Functions:    • Functions in Python - Beginner Python Tuto...  
4. Lists & Tuples:    • Lists & Tuples in Python - Beginner Python...  
5. For Loops & While Loops:    • For Loops & While Loops in Python - Beginn...  

Learn to Program a game:    • How to Program a Game! (in Python)  

-------------------------
Follow me on social media!
Instagram |   / keithgalli  
Twitter |   / keithgalli  

-------------------------
If you are curious to learn how I make my tutorials, check out this video:    • How to Make a High Quality Tutorial Video!...  

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_me...

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.


Sur cette page du site, vous pouvez voir la vidéo en ligne Conditional Statements (if, elif, else) in Python - Beginner Python Tutorial #2 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Keith Galli 01 mars 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 54,937 fois et il a aimé 1.2 mille téléspectateurs. Bon visionnage!