Learn Programming from Scratch – Coding Tutorial for Beginners | Mosh

Want to learn programming from scratch? Watch this coding tutorial for beginners (made with ❤️).

🔥Get the COMPLETE Course: http://programmingwithmosh.com/courses/python-for-beginners

Subscribe to my YouTube channel for more videos:

Want to learn more from me? Check out my blog and courses:



00:00:00 What is Python?
00:01:31 Installing Python
00:03:24 Python Interpreter
00:05:20 Code Editors
00:06:41 Your First Python Program
00:10:19 Python Extensions
00:13:13 Linting Python Code
00:17:29 Formatting Python Code
00:21:25 Running Python Code
00:24:26 Quiz
00:26:50 Variables
00:29:56 Variable Names
00:33:01 Strings
00:38:32 Escape Sequences
00:41:15 Formatted Strings
00:43:25 String Methods
00:49:21 Numbers
00:52:10 Working with Numbers
00:54:21 Type Conversion
00:59:26 Quiz
01:02:12 Comparison Operators
01:04:18 Conditional Statements
01:08:29 Ternary Operator
01:10:40 Logical Operators
01:14:44 Short-circuit Evaluation
01:16:52 Chaining Comparison Operators
01:18:16 Quiz
01:20:02 For Loops
01:23:41 For..Else
01:26:30 Nested Loops
01:29:16 Iterables
01:32:25 While Loops
01:37:26 Infinite Loops
01:39:06 Exercise
01:41:13 Defining Functions
01:43:39 Arguments
01:46:01 Types of Functions
01:50:05 Keyword Arguments
01:52:08 Default Arguments
01:53:45 *args
01:58:02 **args
02:00:24 Scope
02:05:35 Debugging
02:12:26 VSCode Coding Tricks – Windows
02:14:50 VSCode Coding Tricks – Mac
02:16:41 Exercise
02:18:12 Solution


Тестировщик от бога says:

Hi, Mosh! Thanks for the nice course!

User Warning: pep8 has been renamed to pycodestyle (GitHub issue #466)
Use of the pep8 tool will be removed in a future release.
Please install and use `pycodestyle` instead.

$ pip install pycodestyle
$ pycodestyle …

I am Curious. says:

Hey, will u make tutorials on
Assembly language please a lot of fun thing can be done with it…

Jaime Rojas says:

I would like to see some examples of scripting (automating tasks) using Python, that would be great

theGoliath says:

Sir, could you kindly share your VSCode setup? your font used, and file-icons name.. i like them all but still haven’t successfully found out what those are.. (please?) *i appreciate,

Ronny Rusten says:

Can you please stop telling people that terminal is opened with Ctrl + `? This is probably language/keyboard dependent, and you should tell people to look under the View menu.

breflabben says:

how did you add the cat haha 😀

Ashish Arora says:

hello bro how ru . i need ur help , i want to learn only one in Angular , Vue and react . plz telme which is best in all . i want ur personal opinion . if ur beginner then which will u select personally. plz tell me 1 .which one best in job n future .


Nice tutorial! Thank Mosh.

myvideos4u says:

He’s like a cool programming teacher, he wears motorcycle jackets!

Programming school says:

Always enjoy your videos sir!

GoCode Media says:

Nice tutorial from Mr Mosh.

Syed Haider says:

Nice tutorial
Thanks Mosh

Aminu Zack says:

Another manna from heaven from the best programming teacher of all time. Mr Mosh is the only teacher that would make me learn a different language from what i already know because He makes it so easy. Thank you for yet another one.

Daishi ! says:

Thank you Mosh :-)

kamal yadav says:

Hello Mosh, you are a great teacher. Could you please consider making a course on node + react/redux for intermediate/advanced developers.
Thank you in advance :)

Programming with Mosh says:

Did you like this tutorial? Please support me by upvoting it on hackr.io: https://hackr.io/tutorial/python-for-beginners-learn-python-programming-language-in-2-hours

Mustafa luay says:

Can build web application use python without framework like Django?

mainichewitz says:

Awesome tutorial Mosh! What is the difference with the other recent video of phyton for beginners?

Salem Bouabadi says:

You are Awesome thanks for this tutorial

anound him says:

please create tutorial react native with example router i really needid
please mosh made it

Mounir NoSa says:

Hi Mosh
Thank you for the tutorial. I am interested in the python course on your website. A real life project from start to finish is why I am looking for.
When do you think you’ll release the course as of now I cannot find it

Thank you

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours