Afternerd
Afternerd
  • 20
  • 1 218 913
Difference between For loops and While loops (In Python)
In this video in the Python tutorial for beginners, I am going to teach you the difference between For loops and While loops. As well as when it is appropriate to use which type of loops.
⏰ Timestamps:
00:00 | Introduction
00:39 | Loop variable initialization
05:11 | Loop variable update
06:54 | When to use which type of loop
09:52 | Summary
Resources:
📝 Python Cheatsheet: www.afternerd.com/blog/get-python-cheatsheet/
🖥️ Computer Science guide: www.afternerd.com/blog/learn-computer-science/
🐍 Python roadmap guide: www.afternerd.com/blog/learn-python/
Courses:
📚 Python OOP: www.afternerd.com/udemy/python-oop-course
Where you can find me:
ℹ️ Website: www.afternerd.com/​
📸 Instagram: the_kreamix​
🐦 Twitter: AfternerdTweets
#python #pythonforbeginners #pythontutorial #afternerd
zhlédnutí: 8 008

Video

Python: While Loops (Reading User Input Indefinitely?!!)
zhlédnutí 13KPřed 2 lety
In this video in the Python tutorial for beginners, I am going to teach you all you need to know about While Loops in Python by going through an example where a user has to interactively enter multiple numbers indefinitely, and we only stop when the input is a negative number. I will discuss why we need while loops in programming, and the difference between For loops and While loops. ⏰ Timestam...
Python: Why Do We Need Loops? (For Loops Explained)
zhlédnutí 3,6KPřed 2 lety
In this video in the Python tutorial for beginners, I am going to teach you all you need to know about Loops in Python, specifically For loops. I will discuss why we need loops in programming, and in what circumstances we should use them. I will also cover the syntax of for loops, as well as fundamental concepts like the loop counter, the loop body, the loop iteration, and the range function. ⏰...
Python If Statements Explained (In Great Detail)
zhlédnutí 3,4KPřed 2 lety
In this video in the Python tutorial for beginners, I am going to teach you all you need to know about if statements in Python, as well as if-else and if-elif-else statements. If, or conditional, statements is a fundamental concept in programming languages and it is crucial that you understand this concept well in order to be a good programmer. ⏰ Timestamps: 00:00 | Introduction 00:13 | What pr...
8 Tips to SKYROCKET your Python Productivity on VS Code (Visual Studio Code)
zhlédnutí 3,9KPřed 3 lety
In this video, I will teach you 8 tips that will help you skyrocket your Python productivity on VS Code (Visual Studio Code). ⏰ Timestamps: 00:00 | Introduction 00:25 | Tip 1: Fast Commenting 01:22 | Tip 2: Cutting the Whole Line 02:11 | Tip 3: Multiple Cursors 03:24 | Tip 4: Multiline indentation 04:09 | Tip 5: Moving a Line Up or Down 04:52 | Tip 6: Peeking a Symbol's Definition 05:55 | Tip 7...
Python Boolean Data Types, Comparison Operations, and Logical Operations
zhlédnutí 4KPřed 3 lety
In this video in the Python tutorial for beginners, I discuss boolean data types, along with operations that work on boolean data. Specifically comparison operations and logical operations. ⏰ Timestamps: 00:00 | Introduction 00:15 | What are boolean data types? 02:27 | What does boolean mean? 04:07 | Writing code using boolean data types 06:35 | Comparison operations 09:21 | Difference between ...
How to Be an INSANELY Successful Programmer?
zhlédnutí 1,8KPřed 3 lety
In this video, I discuss how to become a successful programmer and have a prosperous programming career. Books mentioned in the video: 📚 Clean Code: amzn.to/3f6PZPL 📚 The Manager's Path: amzn.to/2NI0BJw ⏰ Timestamps: 00:00 | Introduction 00:17 | The three components to a successful programming career 00:31 | The technical component 01:36 | Craftsmanship 02:15 | The difference between the techni...
Automate Asking about the Weather with Python [Python Automation Projects]
zhlédnutí 2,2KPřed 3 lety
In this video, I will teach you how to automate asking about the weather with Python. Google "afternerd learn Python" to check my massive guide for learning Python. Resources: 📝 Python Cheatsheet: www.afternerd.com/blog/get-python-cheatsheet/ 🖥️ Computer Science guide: www.afternerd.com/blog/learn-computer-science/ 🐍 Python roadmap guide: www.afternerd.com/blog/learn-python/ Courses: 📚 Python O...
Python Numbers: Integers, Floats, and Arithmetic Operations [Python Tutorial for Beginners]
zhlédnutí 2,7KPřed 3 lety
In this video, I am going to continue talking about data types. Specifically, I cover Python numbers (integers and floats), as well as the arithmetic operations you can perform on these data types in Python 3. So what will you learn in this video? First, you will learn about integers (int) and floating-point numbers (float), and why we have various numerical data types to start with. Second, yo...
What Programming Language Should I Learn First? (Let's Settle This!)
zhlédnutí 3,8KPřed 3 lety
What programming language should you learn first? Python, Javascript, C , C#, Go, Rust, Ruby, Scheme, Haskell? This question is one of the most frequent questions that I get asked so let's answer this once and for all! Quite frankly, it doesn't matter what your first programming language is. What matters is that you need to start somewhere. In this video, I explain why that is, and I also give ...
Python Strings Concatenation (With Exercises) [Python Tutorial for Beginners]
zhlédnutí 2,9KPřed 3 lety
In this video, I am going to be teaching you about Python string concatenation. Python string concatenation is the operation of joining two or more strings together. In order to join two or more strings together, we use the plus ( ) operator to join string variables and/or string literals. Where else you can find me: WEBSITE: www.afternerd.com/ INSTAGRAM: the_kreamix TWITTER: twit...
Python Strings Explained - Part 1 (Indexing and Slicing) [Python Tutorial for Beginners]
zhlédnutí 3,2KPřed 3 lety
This is the first video in a series of videos where I will talk about Python Strings. Specifically, I will talk about what strings are, how they are represented, and how you can apply indexing and slicing on strings. A string in Python is a data type that represents textual data. They are essentially a sequence of characters. In Python, strings can be represented by enclosing some text with eit...
What do Software Engineers do? (And How to Grow your Career)
zhlédnutí 1,8KPřed 3 lety
What do Software Engineers do at work? In college, you learn about programming, operating systems, networking, etc.. but have you ever wondered what do software engineers do once they land their first job? To understand the responsibilities of the software engineer, you need to understand the responsibilities of the people you will be working closely with: Engineering Managers and Product Manag...
Python Variables (Python Tutorial for Beginners)
zhlédnutí 3,2KPřed 3 lety
Python Tutorial for Beginners: Python variables In this video, I explain what Python variables are. A variable is a fundamental programming concept that you need to understand whether you are learning Python or any other programming language. Where else you can find me: WEBSITE: www.afternerd.com/ INSTAGRAM: the_kreamix TWITTER: AfternerdTweets
What is the Python Interpreter? (How does Python Work?)
zhlédnutí 78KPřed 3 lety
What is the Python interpreter and how does Python work internally? In this video, I talk about how the Python interpreter works and how it runs your Python source code. Essentially, the Python interpreter is comprised of two subsystems: 1- A compiler: this compiles your source code into an intermediate code called the 'byte code' 2- A Python virtual machine (PVM): this interprets and executes ...
How Long Does It Take to Learn Python? (And Get a Job)
zhlédnutí 914KPřed 3 lety
How Long Does It Take to Learn Python? (And Get a Job)
How to Learn Python? (From Zero to Hero)
zhlédnutí 136KPřed 3 lety
How to Learn Python? (From Zero to Hero)
Your First Python Program (Hello World!)
zhlédnutí 17KPřed 4 lety
Your First Python Program (Hello World!)
How to Setup Python 3 on Windows? (Step-by-Step)
zhlédnutí 6KPřed 4 lety
How to Setup Python 3 on Windows? (Step-by-Step)
What is Object-Oriented Programming? (The basic concepts)
zhlédnutí 12KPřed 4 lety
What is Object-Oriented Programming? (The basic concepts)

Komentáře

  • @bechieorfrecio2222
    @bechieorfrecio2222 Před 3 dny

    Hi sir I'm new follower

  • @dukemakaveli
    @dukemakaveli Před 14 dny

    Hi, Iam a none IT-based and i have zero background about IT fields, I saw a course in Udemy that gives the opportunity to learn Paython in 100 days, offering 60 hours, is it ok for me as a completely beginner to enroll in this course? Kindly advise and thanks in advance.

  • @Dono0o
    @Dono0o Před 15 dny

    Everyone takes different amount of time learning things and if your younger it will probably take longer

  • @roshnimandarapu5097
    @roshnimandarapu5097 Před 15 dny

    WOWWWW!

  • @user-ty2gg8vv6m
    @user-ty2gg8vv6m Před 27 dny

    11:48 SO THATS __PYCACHE__ IS FOR

  • @soumiksen571
    @soumiksen571 Před 28 dny

    You talk too much instead of coming to the point

  • @jetbob309
    @jetbob309 Před měsícem

    I like your style of delivery! Id definitely buy a course from you! Thanks for the video

  • @web-unlocked
    @web-unlocked Před měsícem

    This is the best python mechanism of action explanation I've seen on the internet

  • @lowbudgetsonic5056
    @lowbudgetsonic5056 Před měsícem

    My kid died because I did not find this sooner

  • @gd2860
    @gd2860 Před 2 měsíci

    Im the type of person who has to learn it from a very high level first then, the rest should fall into place. This fills a lot of gaps that ive had in getting started with python. Im new to this but again, I need to see the big picture first. Im an old network guy who mastered networking years ago. Been shying away from network automation but its what's here now and literally in my face at the workplace. Excellent explanation. Well done!

  • @monazine
    @monazine Před 2 měsíci

    This is so clear and informative i like to know whats going on to understand later how things work even if i wont go deep to these codes. Thank you for this

  • @mo7sin711
    @mo7sin711 Před 2 měsíci

    I need help I'm studying the freecodecamp course, and when i type the following code for the conditional exercise x = 0 y = 10 if 0 == x: if y == 10: print('YES') the output in the VS code terminal is Syntax Error however when I run it in python itself or an online compiler, it runs successfully and prints YES I need help :(

  • @nothingmuch44
    @nothingmuch44 Před 2 měsíci

    pls could you tag the links to the for loop videos you said we should go watch first.

  • @WaldoTheWombat
    @WaldoTheWombat Před 2 měsíci

    Thank you Karim, excellent video! Why do interpreters convert source code to machine code one row at a time unlike compliers that convert the entire file all at once and what is the consequence of this difference?

  • @mhr4291
    @mhr4291 Před 2 měsíci

    well explained. thank you

  • @harshmittal63
    @harshmittal63 Před 2 měsíci

  • @byroniniesta5370
    @byroniniesta5370 Před 2 měsíci

    Thank you sir.👍

  • @lucascerveracom
    @lucascerveracom Před 3 měsíci

    Great explanation! Thanks for sharing your knowledge in such an easy to understand way

  • @user-hj3dx2fm6q
    @user-hj3dx2fm6q Před 3 měsíci

    RADHE RADHE JAI SHREE RAM HAR HAR MAHADEV RADHA RADHA RADHA RADHA RADHA RADHA RADHA RADHA RADHA RADHA RADHA

  • @dani-os2sx
    @dani-os2sx Před 3 měsíci

    Now I know everything 😊

  • @TheApeWonder
    @TheApeWonder Před 3 měsíci

    Thanks for this and thanks for all comments! So starting out as a front end developer going into UX, I’m now (sort of) tired of that and web. The market is bloated with those kinds of skills and building apps has slowed down. So I stand between sharpening my React skills or simply ditch that and jump into Python. Taking a Udemy course now which is great so far. I also think JS and Python are good to know in tandem. But here’s the crux so to speak. I’m not a genius at math but I like programming and have done so in JavaScript a fair bit. I like Python for its diversity but then again each tool for the right job, can’t use it for everything effectively I’ve been told. So if I don’t get into ML or data science, if math is crucial there or companies require BsC in those - can Python work for cybersecurity, embedded systems, web, etc? I believe it can but is it valid to master Python, thinking long term and being relevant for hiring while looking at the market? Web today is all HTML, CSS and JS which I’ve done quite a bit. It’s tiresome with JS and their libraries. It never ends. (I’ve been thinking of doing cybersecurity as a career change or IoT) Ps. I’m now 46 so I want to make a “smart switch” for the rest of my career. 😅

  • @mannp31
    @mannp31 Před 4 měsíci

    Thanks bro

  • @sowmyaganiga4155
    @sowmyaganiga4155 Před 4 měsíci

    Thanks for the information this is what needed to start with anything in IT , Please make more and more videos on basics

  • @NakojaTimoryiKofi-zz8zf
    @NakojaTimoryiKofi-zz8zf Před 4 měsíci

    Please is there any website I can be getting codes to be practicing on?

  • @monochromenight8943
    @monochromenight8943 Před 4 měsíci

    I wonder whatever happened to him. I was eagerly awaiting the Python Socket course.

  • @TheUssmkl
    @TheUssmkl Před 4 měsíci

    Definitely one of the best teachers on here. Way better than the way the Google course explains it.

  • @TheUssmkl
    @TheUssmkl Před 4 měsíci

    This guy is a great teacher! I'm taking Programming Logic through college and it is confusing. After watching this Afternerd I get it!

  • @mayeganfriends6678
    @mayeganfriends6678 Před 4 měsíci

    I'm subscribing.....Gold information here

  • @cutecute6471
    @cutecute6471 Před 4 měsíci

    What are the best channels to learn Python?

  • @user-sl2ti8yg5m
    @user-sl2ti8yg5m Před 4 měsíci

    Your way of explaining things is really clear and easy to understand! Thank you so much

  • @JaceFreeman3
    @JaceFreeman3 Před 5 měsíci

    Thank YOU

  • @quitchiboo
    @quitchiboo Před 5 měsíci

    Late to the party, but pretty much instantly subscribed. Clear, to the point, minimalist yet highly effective visual aids.

  • @scaledeals-io
    @scaledeals-io Před 5 měsíci

    This was awesome! Thank you!

  • @navnitkumar138
    @navnitkumar138 Před 5 měsíci

    Nice Explanation. Very impressive tutorial for me. Now I learnt How Interpreter works. Thanks a lot..!

  • @bassamtarabay9723
    @bassamtarabay9723 Před 5 měsíci

    Thank you. Great vid.

  • @herohoang4717
    @herohoang4717 Před 5 měsíci

    Amazing 🎉🎉🎉

  • @merrymouse2008
    @merrymouse2008 Před 5 měsíci

    Wonderful video! You explain it so nicely and it is easy and interesting to follow. thank you so much for making it!

  • @user-bg3tq7fi3l
    @user-bg3tq7fi3l Před 5 měsíci

    you are the best!!!!!! I wish my prof was like that..

  • @sondisamvemnyama3476
    @sondisamvemnyama3476 Před 6 měsíci

    Answer @5:30

  • @louis20122
    @louis20122 Před 6 měsíci

    What book or where do i learn as an accountant and not into programming?

  • @elijahelicom
    @elijahelicom Před 6 měsíci

    Look for is a complete course of python bro

  • @estebangomez1823
    @estebangomez1823 Před 7 měsíci

    This nailed it!!! Happy to found this channel!

  • @bryce3851
    @bryce3851 Před 7 měsíci

    I'm going for data analysis for job wise I started learning from w3 schools and CZcams still have long ways to go !

  • @zuzanwin6614
    @zuzanwin6614 Před 7 měsíci

    Thank you so much

  • @Wladyslaw1440
    @Wladyslaw1440 Před 7 měsíci

    Been learning python for 5 or more months but I just can’t do it. I keep trying and I will keep doing it but I just can’t get passed the basics. In code wars in alright on 8KYU, but when I get to 7KYU it’s a new world, I see double modulus, millions of brackets, Jesus Christ. I need help.

  • @createwithliberty
    @createwithliberty Před 8 měsíci

    L

  • @user-ym2nq1gu2u
    @user-ym2nq1gu2u Před 8 měsíci

    Thank you :)

  • @jayr399
    @jayr399 Před 9 měsíci

    if im learning the front end developing path...where does python come in to play? Bc i know usually its HTML, CSS, JAva, React on most coding bootcamp/self study. How do I approach this? my ultimate goal is to get a dev job and eventually build SaaS later on and AI etc?

  • @calebmoughkera-65
    @calebmoughkera-65 Před 9 měsíci

    wow! thanks so much. the logic behind the while loop has been my problem until today.

  • @travellust.
    @travellust. Před 9 měsíci

    how long to get a job ? = 1-learn python (7-8 MONTH) , 2- learn how to take an interview(1-2MONTH) == So around a year