Рет қаралды 49,710
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:
www.cheatography.com/paul-ben...
Link to previous video:
• Math & Variables in Py...
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 P...
1. Math & Variables: • Math & Variables in Py...
2. Conditional Statements (if, elif, else): • Conditional Statements...
3. Functions: • Functions in Python - ...
4. Lists & Tuples: • Lists & Tuples in Pyth...
5. For Loops & While Loops: • For Loops & While Loop...
Learn to Program a game: • How to Program a Game!...
-------------------------
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 Qua...
⭐ 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! www.kite.com/get-kite/?...
*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.