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

Published: 01 March 2018
on channel: 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.


On this page of the site you can watch the video online Conditional Statements (if, elif, else) in Python - Beginner Python Tutorial #2 with a duration of hours minute second in good quality, which was uploaded by the user Keith Galli 01 March 2018, share the link with friends and acquaintances, this video has already been watched 54,937 times on youtube and it was liked by 1.2 thousand viewers. Enjoy your viewing!