Python Tutorial for Beginners with 3 Projects (2019)

This Python tutorial helps you learn Python for machine learning, data science, automation, and web development.
👍Subscribe for more Python tutorials like this:

📕Get My FREE Python Cheat Sheet:

🔥Get My Complete Python Course with a 90% Discount (LIMITED to the first 200 students):

This is my brand-new #Python tutorial to learn Python programming from scratch. We start off by learning Python 3 language constructs and then we’ll build 3 Python projects involving #automation, #machinelearning and #webdevelopment. Make sure to complete all the exercises in this tutorial.

🔗Supplementary Materials for this Python Tutorial

📔Python Exercises for Beginners

⭐My Favorite Python Books
– Python Crash Course:
– Automate the Boring Stuff with Python:
– A Smarter Way to Learn Python:
– Machine Learning for Absolute Beginners:
– Hands-on Machine Learning with scikit-learn and TensorFlow:


00:00:00 Introduction
00:01:49 Installing Python
00:06:10 Your First Python Program
00:08:11 How Python Code Gets Executed
00:11:24 How Long It Takes To Learn Python
00:13:03 Variables
00:18:21 Receiving Input
00:22:16 Python Cheat Sheet
00:22:46 Type Conversion
00:29:31 Strings
00:37:36 Formatted Strings
00:40:50 String Methods
00:48:33 Arithmetic Operations
00:51:33 Operator Precedence
00:55:04 Math Functions
00:58:17 If Statements
01:06:32 Logical Operators
01:11:25 Comparison Operators
01:16:17 Weight Converter Program
01:20:43 While Loops
01:24:07 Building a Guessing Game
01:30:51 Building the Car Game
01:41:48 For Loops
01:47:46 Nested Loops
01:55:50 Lists
02:01:45 2D Lists
02:05:11 My Complete Python Course
02:06:00 List Methods
02:13:25 Tuples
02:15:34 Unpacking
02:18:21 Dictionaries
02:26:21 Emoji Converter
02:30:31 Functions
02:35:21 Parameters
02:39:24 Keyword Arguments
02:44:45 Return Statement
02:48:55 Creating a Reusable Function
02:53:42 Exceptions
02:59:14 Comments
03:01:46 Classes
03:07:46 Constructors
03:14:41 Inheritance
03:19:33 Modules
03:30:12 Packages
03:36:22 Generating Random Values
03:44:37 Working with Directories
03:50:47 Pypi and Pip
03:55:34 Project 1: Automation with Python
04:10:22 Project 2: Machine Learning with Python
04:58:37 Project 3: Building a Website with Django

Stay in Touch:


Frank says:

this deverves views.count * 10 or even more !!
So much effort put into this and uploaded on youtube for free! you will go to heaven for sure

you even made time stamps, how can someone dislike this?


Hi mosh ,can you please create video on ajax calls in js ,JQuery,angular ,react and clear confusion in different languages

feroz shaik says:



Mosh.. You’re really talented & very Professional. Hats off

Gayathri Manacaud says:

Do we need to complete degree to study python ?

Saeed Anwar says:

Sir Mosh.. I want to learn python to become a GOOGLER

Petros Kourampas says:

weigth = input(“Tell us your weight: “)
conv = input(“(L)bs or (K)g: “)

if conv == “k”:
pound = float(weigth) * 2.20 # 1 kg = 2.20libres
pound = int(pound)
print(“You are ” + str(pound) + ” pounds”)
kilos = float(weigth) * 0.45
kilos = int(kilos)
print(“You are ” + str(kilos) + ” Kg”)

Ant Onio says:

thank you <3
this video help me so much
maybe my English its not perfect but I understand everything what you said

Muhammad Usman says:


Tommy Noonan says:

Project 1: Automation with Python – on line 23 “sheet.add_chart(chart, “e2″)” was not working. Had to capitalize the e to “E2” in order for it to work. Not sure if anyone else was having that error…

Ranga bharath says:

Hi, your tutorial is awesome. I am facing an error in automation project. When I am trying to access a row in excel sheet, I am getting a key error:”e”. How to rectify this. Please tell me. Thank you


Hi, Mosh. Thanks for your awsome course! I have one litle question and if you reply gonna be great. Do you use your own computer/laptop on your job or they give you one? Thanks.

FlyingArmbar says:

Great Tutorial Mosh, thanks so much for giving this much content (6+ hours) for free on your Youtube. You earn yourself a loyal subscriber and I’ll be sure to share your videos with friends that are interested. Thanks again!

Tamal Bhowmik says:

For those who are facing error during adding chart .
simply change sheet.add_chart(chart, ‘e2’) to sheet.add_chart(chart, ‘E2’)

Christian Chi says:

I would be happy If I could get a reply asap on this one. I am actually enrolling on this course because of django. I love to build websites and doing it with python gives me joy. DO you have any courses that is specifically dedicated to django weather free or paid on Udemy or anywhere at all specifically based on django?

And my second question is… I’m currently at 5:38:37, the CSS of my admin pannel isn’t loading. I can see just the HTML and considering that i’m a complete newbie to django, I feel helpless. Please what can I do to overcome this?????

The Image below is a screen capture of what ugly admin pannel I have


To be honest, you’re doing a great job.

syncperfect says:

whenever I use formatted string terminal is showing Syntaxerror

Reponsable Marketing says:

please you can created a system MVC with php ?

feroz shaik says:



i wanna learn python for freelanccing.
because i have economical problem thats why i want to come in freelance
and i want to continue my bachelor degree again.i hope you suggest me as your younger brother!!!!

7Seven Fold7 says:

I want to make video gmaes for all platforms

Ash says:

Hi Mosh. I’m also willing to learn python. I’m from non coding background. I’m willing to get your supervision to learn coding and python with you.

What is more we can get by getting paid course as given in description. Course shows self paced is that course having any series of videos to follow to learn python.

I’m new for coding. How to pay for course if credit card and PayPal not available. Any other option to buy the course.

ProgrammingFun says:

Windows Users who want to show the Emoji Panel press : (Windows Key + .) or Windows Key + ;

Hersh D says:

thank you, excellent tutorials

Samee Abdul says:

Just started with it and really liking it… looks super interesting with easy to understand explanation.. Really appreciate Mosh..keep it up

Advait Joshi says:

Make a videos to consume API s to make realtime good stuff .

Mazid Ali says:

Sir please make the video on core java full

GuruMack says:

Now this is a high quality course for beginners!
I use Python for selenium as well as some fun machine learning stuff 🙂
Anyone who is watching this video is on the right path so keep at it!

I too have a high quality course that I’ve recently uploaded to my channel check it out:
(for complete beginners)

Noormohammed Shikalgar says:

Hey Mosh hello there, thanks for such an awesome python course thanks to you a lot dude!.
in this course you told that you are working on Django course, I just wanna ask that it will be free or paid.

Christian Hernandez says:

I love this guy and I have just watched 1 minute of this video :), lets get hands-on these cool projects.


Sir, all challenges me to learn any computer language they say u can’t but I want to prove them wrong. I want to become Machine Learning expert or AI expert. B’coz this is the great answer to them. Please please please help me. Guide me in that path.

Lukas Oliver says:

Thanks for 6 fucking hours <33333

Isco ico says:

SaaS project for upcoming Django course, please! 🙂

Tsabyh Seif says:

I follow ur tutorial and I get page not found I don’t know y i did everything right

Harmeet Singh says:

Mosh I am having a laptop with 2 GB ram can I follow this course as pycharm website stated a requirement of 4 GB ram

Night Knight says:

I tried printing (“You are ” + weight_kg + “kg”) but it gives me an error. how do I make it print
e.g. You are 50kg

Hanani Abdallah says:

facing the problem of Python interpreter during installation how can i fix it please I’m running out of time

Rawshan Ara says:

After watching your video i am getting more crazy about learning python …Thank you sir …

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!