Python If Statements for Data Science / Data Analysis - P.2 @LukeBarousse
Python If Statements for Data Science / Data Analysis - P.2  @LukeBarousse
Uploaded November 2020 | Updated September 2026, 1 hour ago
Python Fundamentals Course (DataCamp) ๐Ÿ‘‰๐Ÿผ lukeb.co/PythonBasicsDataCamp
Data Analyst Track w/ Python (DataCamp) ๐Ÿ‘‰๐Ÿผ lukeb.co/PythonAnalystDataCamp
(My recommended courses that I took to learn Python!)

This video provides an overview of if statements and how they are used by data scientist / data analysts. Additionally, we cover operators used within if statements such as: Comparison (==, !=), Logical (and, or, not), Identity (is), and Membership (in). At the end we build a simple chatbot with what we have learned, to provide feedback on characters from 'The Office'.

Also, if curious, here is more on operator precedence ๐Ÿ‘‰๐Ÿผ docs.python.org/3/reference/expressions.html#operator-precedence

00:00 Introduction
00:46 If Statement - Basic if statement
02:19 If Statement - else condition
02:59 If Statement - elif condition
04:16 Comparison Operators - ==, !=
06:13 Logical Operators - and, or, not
08:15 Membership Operators - in
09:11 Identity Operators - is
11:05 Build a chatbot with if statements
19:14 Conclusion

Playlist (Course) Material ๐Ÿ‘‰๐Ÿผ github.com/lukebarousse/Python_Intro

Basics of Python playlist ๐Ÿ‘‰๐Ÿผ youtube.com/playlist?list=PL_CkpxkuPiT8zTx9XO9jFf4PQ0iwBWfXB

Setting up Python on your computer playlist ๐Ÿ‘‰๐Ÿผ youtube.com/playlist?list=PL_CkpxkuPiT9udgCeqZpS4HKF6uIzra3r

Recommended Certificates/Courses (Affiliate Links)
==================================
DataCamp:
Python ๐Ÿ‘‰๐Ÿผ lukeb.co/PythonBasicsDataCamp
Power BI ๐Ÿ‘‰๐Ÿผ lukeb.co/PowerBIDataCamp
Tableau ๐Ÿ‘‰๐Ÿผ lukeb.co/TableauDataCamp
R ๐Ÿ‘‰๐Ÿผ lukeb.co/RDataCamp
Data Analyst w/ Python ๐Ÿ‘‰๐Ÿผ lukeb.co/PythonAnalystDataCamp
DataCamp Subscription (Monthly $25USD) ๐Ÿ‘‰๐Ÿผ lukeb.co/DataCampSub

Coursera:
Google Data Analytics Certificate (BEGINNERS START HERE) ๐Ÿ‘‰๐Ÿผ lukeb.co/GoogleCert
Python for Everybody ๐Ÿ‘‰๐Ÿผ lukeb.co/PythonForEverybody
SQL ๐Ÿ‘‰๐Ÿผ lukeb.co/PostgresSQLUofM
Coursera Plus Subscription (Monthly $59USD) ๐Ÿ‘‰๐Ÿผ lukeb.co/CourseraMonthly
Coursera Plus Subscription (Annual $399USD) ๐Ÿ‘‰๐Ÿผ lukeb.co/CourseraYearly

My Tech for Data Science
(Includes Amazon Affiliate Links)
==================================
๐Ÿ’ป Dell New XPS 13 (PC of choice) ๐Ÿ‘‰๐Ÿผ geni.us/DellNewXPS13
๐Ÿ’ป Dell New XPS 15 ๐Ÿ‘‰๐Ÿผ geni.us/DellNewXPS15
๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป M1 Macbook Air 8GB (Mac of choice) ๐Ÿ‘‰๐Ÿผ geni.us/M1macAir8GB
๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป M1 Macbook Pro 8GB ๐Ÿ‘‰๐Ÿผ geni.us/M1macPro8GB
๐Ÿ”Œ Must-have Mac dock ๐Ÿ‘‰๐Ÿผ geni.us/CalDigitTS3
๐Ÿ–ฅ M1 Multiple monitor adapter ๐Ÿ‘‰๐Ÿผ geni.us/DisplayLinkAdapter
โŒจ๏ธ Mac Keyboard ๐Ÿ‘‰๐Ÿผ geni.us/MacMagicKeyboard
๐Ÿ–ฑ Mac Mouse ๐Ÿ‘‰๐Ÿผ geni.us/MacMagicMouse
๐Ÿ’พ Small (1TB) External HD ๐Ÿ‘‰๐Ÿผ geni.us/WDelements1TB
๐Ÿ’พ Large (14TB) External HD ๐Ÿ‘‰๐Ÿผ geni.us/WDelements14TB
๐Ÿข Standing Desk ๐Ÿ‘‰๐Ÿผ geni.us/StandingDeskFezibo
๐Ÿ“— Data Science Must Read ๐Ÿ‘‰๐Ÿผ geni.us/StorytellingWithData
๐Ÿ“ธ Camera of Choice ๐Ÿ‘‰๐Ÿผ geni.us/SonyA6600body
*For computers, I recommend checking the manufacturer's website (i.e., dell.com) for deals/rebates*

Social Media / Contact Me
======================
๐Ÿ™‹๐Ÿผโ€โ™‚๏ธWebsite: lukebarousse.com
๐ŸŒ„ Instagram: instagram.com/lukebarousse
โฐ TikTok: tiktok.com/@lukebarousse
๐Ÿ“˜ Facebook: facebook.com/datavizbyluke
๐Ÿ“ฅ Business Inquiries: luke@lukebarousse.com

As an Amazon Associate, I earn a small commission from qualifying purchases on the Amazon links above. It costs you nothing but helps me in keeping the content coming.

#pythontutorial #datavisualization #python
Python If Statements for Data Science / Data Analysis - P.2M1 Chip is as FAST as M1 Max!!! ๐Ÿคฏ  (13 Mac Air Vs. 14 Mac Pro) #shortsWhat the HECK is a โ€œData Pipelineโ€? ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ”ง๐Ÿ“Š๐Ÿช How I Use Notion: Tutorial for BeginnersBecome a DATA ANALYST with NO degree?!? The Google Data Analytics Professional CertificateIf I had to start over as a Data Analyst ๐Ÿค“๐Ÿ“ŠCalculated Fields in Tableau (Formulas & IF Statements) - Tableau Tutorial P.6Install your favorite Windows app on M1 Mac - ft. ParallelsThe End of Data Analysts?!? (ChatGPTs Code Interpreter)Day in the life of a Data Analyst ๐Ÿค“๐Ÿ“ŠData Analyst vs. Data Scientist (funny!)How I use Python as a Data Analyst
Luke Barousse |

Python If Statements for Data Science / Data Analysis - P.2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER