For Loops in Python | Python for Beginners
Take my Full Python Course Here: bit.ly/48O581R
In this series we will be walking through everything you need to know to get started in Python! In this video we learn about For Loops in Python.
Code in GitHub: github.com/AlexTheAnalyst/Pyt...
Favorite Python Courses:
📖Python for Everybody Specialization - imp.i384100.net/jWdkA0
📖Data Analysis with Python - coursera.pxf.io/BXY3Wy
____________________________________________
SUBSCRIBE!
Do you want to become a Data Analyst? That's what this channel is all about! My goal is to help you learn everything you need in order to start your career or even switch your career into Data Analytics. Be sure to subscribe to not miss out on any content!
____________________________________________
RESOURCES:
Coursera Courses:
📖Google Data Analyst Certification: coursera.pxf.io/5bBd62
📖Data Analysis with Python - coursera.pxf.io/BXY3Wy
📖IBM Data Analysis Specialization - coursera.pxf.io/AoYOdR
📖Tableau Data Visualization - coursera.pxf.io/MXYqaN
Udemy Courses:
📖Python for Data Analysis and Visualization- bit.ly/3hhX4LX
📖Statistics for Data Science - bit.ly/37jqDbq
📖SQL for Data Analysts (SSMS) - bit.ly/3fkqEij
📖Tableau A-Z - bit.ly/385lYvN
Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!
____________________________________________
SUPPORT MY CHANNEL - PATREON/MERCH
🙌Patreon Page - / alextheanalyst
💻Alex The Analyst Shop - teespring.com/stores/alex-the...
____________________________________________
Websites:
💻Website: AlexTheAnalyst.com
💾GitHub: github.com/AlexTheAnalyst
📱Instagram: @Alex_The_Analyst
____________________________________________
0:00 Intro
1:09 Syntax of For Loop
3:03 Variable Name in For Loop
3:28 Looping through a Dictionary
6:21 Nested For Loops
8:45 Outro
All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for
Пікірлер: 23
I have studied for loop over and over without understanding until today. Thank you so much, Alex, this is so helpful.
Looking forward to this. I am a Data Analyst and use the basics of Python/Pandas, but have SO much more to learn
@AlexTheAnalyst
Жыл бұрын
The Pandas series is next and I think it's pretty good! :D
Fantastic! Really learned a lot
Superb one 👏🏻
amazing Alex, good job
Thank you for this video.
Kudos Sir
Thanks for sharing and glad you chose Jupyter notebook to walk through the for loop tutorial...
Thanks Alex!
Perfectooooooooo
With no real experience with Python, as a use case in the Healthcare industry, would you nest for loop a diagnosis and cpt codes commonly associated with the diagnosis then compare what was in { } or not in { }? I guess you could then compare what doctors then usually do what procedures on a diagnosis. BTW, is that something an analyst or scientist be more likely to do! Thanks for breaking this down to the Nub3 level!
hey alex, i just started doing your course the other day and really love it!! i did wanna ask, why did you choose to use jupyter instead of python itself?
@AlexTheAnalyst
Жыл бұрын
I find it easier and simpler to understand than using an IDE - in future videos I’ll be showing my favorite IDEs, how to use them, and which one to use for certain use cases
I wonder if it has to do with having a newer version of Jupyter, considering how long ago the video was published. I wrote the exact same code on the first example (integers = [1,2,3,4,5] to follow along, and I got an error message: "name 'integers' is not defined." Any help? By the way, thank you for explaining so well! I love watching your videos. Update: never mind. I defined 'integers' by adding: for x in integers: print(x) and it worked. I'm leaving this update here in case another novice like me encounters the same issue. ;-) Alex, your videos have been extremely helpful! Thanks!
At timestamp 3:19, for code print(Jelly + Jelly), how come we don't write is print( 'Jelly' + Jelly')? Is Jelly not a string?
@AlexTheAnalyst
Жыл бұрын
We are using a variable, not a string
Hi Alex, please what is wrong with this code it seems to be calculating wrongly. # write a program that asks the user to enter 5 positive integers , # the program disregards negative values and zeros and makes the user re enter an input if so. # The program is capable of calculating both sum and product of all the numbers entered . # after taking the inputs # it asks the user whether they want to print the sum of the numbers # or products and then shows the result accordingly count = 0 sum = 0 product = 1 while count
@abhishekavhad3848
4 ай бұрын
count = 0 numbers = [] while count user_input = int(input("Please enter a positive integer: ")) if user_input
boring. already a billion python beginner tutorials on the internet.
@potato-sweet
Жыл бұрын
then go watch those?? this is so unnecessary
@AlexTheAnalyst
Жыл бұрын
It’s leading up to my tutorials on Pandas, Matplotlib, seaborn, web scraping, and a few other series. I wanted to make sure people knew the basics before going into those.
@NgeeHuiQian
Жыл бұрын
I love it tho, i've been waiting for this