Python for Beginners - Learn Python in 1 Hour

2024 ж. 10 Мам.
16 749 068 Рет қаралды

Learn Python basics in 1 hour! ⚡ This beginner-friendly tutorial will get you coding fast.
🚀 Want to dive deeper?
- Check out my Python mastery course: bit.ly/35BLHHP
- Subscribe for more Python tutorials like this: goo.gl/6PYaGF
📕 Get the FREE goodies:
- Python cheat sheet: bit.ly/2Gp80s6
- Python exercises for beginners: goo.gl/1XnQB1
✋ Stay connected:
- Twitter: / moshhamedani
- Facebook: / programmingwithmosh
- Instagram: / codewithmosh.official
- LinkedIn: / codewithmosh
⭐ My favorite Python books
- Python Crash Course: amzn.to/2GqMdjG
- Automate the Boring Stuff with Python: amzn.to/2N71d6S
- A Smarter Way to Learn Python: amzn.to/2UZa6lE
- Machine Learning for Absolute Beginners: amzn.to/2Gs0koL
- Hands-on Machine Learning with scikit-learn and TensorFlow: amzn.to/2IdUuJy
📖 TABLE OF CONTENT
0:00:00 Introduction
0:00:30 What You Can Do With Python
0:01:15 Your First Python Program
0:05:30 Variables
0:09:08 Receiving Input
0:10:48 Type Conversion
0:18:49 Strings
0:23:41 Arithmetic Operators
0:25:59 Operator Precedence
0:27:11 Comparison Operators
0:28:52 Logical Operators
0:31:06 If Statements
0:36:16 Exercise
0:41:42 While Loops
0:45:11 Lists
0:48:47 List Methods
0:52:16 For Loops
0:54:54 The range() Function
0:57:43 Tuples
#Python #AI #MachineLearning #WebDevelopment

Пікірлер
  • 🔥 Want to master Python? Get my complete Python course: bit.ly/35BLHHP 👍 Subscribe for more Python tutorials like this: goo.gl/6PYaGF

    @programmingwithmosh@programmingwithmosh2 жыл бұрын
    • Hey Mosh I can't find the method to change my string into an upper case... Its as if the method course. Upper is unavailable. Help please

      @magombedzeelizabeth7411@magombedzeelizabeth7411 Жыл бұрын
    • when I first opened pycharm It did not show me the options to choose the general setting. now when I type in the first code nothing is highlighted and when I run it, all it says is Hi pycharm :'(

      @kamichavez6203@kamichavez6203 Жыл бұрын
    • why my pycharm defaultly create a main.py file

      @yilikalafework@yilikalafework Жыл бұрын
    • Hi sir I learn python

      @Fameexpo@Fameexpo Жыл бұрын
    • Thank you very much for the tutorial. Could you please update the link for the Python cheat sheet? The current one is not working

      @raynkata_7014@raynkata_7014 Жыл бұрын
  • This guy, sat for 1 hour and talked about python, and then released it for free. legend

    @codingmadeclear2229@codingmadeclear22293 жыл бұрын
    • Is it really worth for beginners ?

      @Hi_its_me_Shruti@Hi_its_me_Shruti3 жыл бұрын
    • @@Hi_its_me_Shruti Yeah I think its an great course for beginners tbh

      @codingmadeclear2229@codingmadeclear22293 жыл бұрын
    • Here is another video called Python in One Hour published a few months before this one enjoy! kzhead.info/sun/nMlmmM5-j56uh6s/bejne.html

      @pragmaticai@pragmaticai3 жыл бұрын
    • @@codingmadeclear2229 true lots of knowledge for the beginners that have no idea🙏🏼

      @kirtanpatelium3065@kirtanpatelium30653 жыл бұрын
    • With 1.3M views, he made around 6,000 USD and counting. No one does anything for free

      @salah1x@salah1x3 жыл бұрын
  • I'm learning because i want a better job than driving a school bus. For many who keep asking, I did infact become a computer programmer. I started here learning Python. Then I moved to others like Java and c sharp and plus plus to name a few. I even learned Fortran because of a job needed it(very useful but not at the same time, lol). I've turned a page from working with a company and decided to design games a long time dream of mine. I hope wholeheartedly that this video helps all of you the same way it did for me. Thank you all for the best wishes. They've helped me push along even when I felt I could go any further. You all are the best!

    @Seraphvonteschen@Seraphvonteschen3 жыл бұрын
    • You can improve your coding skill with our videos

      @CodingPerspective@CodingPerspective3 жыл бұрын
    • Absolutely amazing, you will be rewarded for your hard work, never give up and keep pushing forward!

      @toughcookie250@toughcookie2503 жыл бұрын
    • good for you man

      @massrdmdoer7348@massrdmdoer73483 жыл бұрын
    • wish you good luck. God bless you.

      @enjoybas@enjoybas3 жыл бұрын
    • Let me start off by saying that you have made the first step to be what you want to be. You have already self analyzed and absolutely know you are better than a bus driver. You just did this because you got the opportunity to learn how to be abus driver. Now you have the opportunity to learn how to become more technologically advanced and get smarter at the same time. I have taken this step as well. Let’s start this journey and possibly share our experiences through chat. You can become my chat friend and push one another to be who we were truly destined to be.

      @madhatter2687@madhatter26873 жыл бұрын
  • I have been trying to learn. But the way he has explained so far is super easy and understandable. I wish I could come to this channel earlier.

    @shahabuddin126@shahabuddin1262 ай бұрын
  • Thank you so much for the help Mosh! Excercise 1: print ("Check In") print("Data=") first_name = "John Smith" age = 20 new_patient = True print("Name:",first_name) print("Age:",age,"Years Old") print("New Patient?","Yes") Excercise 2: first = input("First: ") second = input("Second: ") sum = float(first) + float(second) strsum = str(sum) print("Sum: " + strsum) if statements: temperature = 25 if temperature > 30: print("It's a Hot Day") print("Drink plenty of water") elif temperature > 20: # (20, 30] print("It's a Nice Day") elif temperature > 10: # (10, 20] print("It's a bit cold") else: print("It's Cold") print("Done") Excercise 3: weight = input("Weight: ") unit = input ("(K)g or (L)bs: ") if unit.upper() == "L": weightk = float(weight)/2.205 print("Weight in Kg: " + str(int(weightk)) + " kg") # (lbs to kg] elif unit.upper() == "K": weightl = float(weight)*2.205 print("Weigth in Lbs: " + str(int(weightl))+ " lbs") # (kg to lbs]

    @Taglioz@Taglioz2 ай бұрын
    • I'm wondering why (if unit == "K" or "k") doesn't work

      @blengblong01712@blengblong01712Ай бұрын
    • @@blengblong01712 Hi man, are you putting the if and unit function inside the ()?? if so, will not work, it has to identify the if and the unit as two different things

      @artgus1356@artgus1356Ай бұрын
    • ​@@artgus1356 No, I just wrote it inside () to separate it on the sentence. The code works but not the same as the original comment's code, which is my goal

      @blengblong01712@blengblong01712Ай бұрын
    • @@artgus1356 I wrote it like this wt = float(input("Weight: ")) # Choose Kg or Lbs unit = input("(K)g or (L)bs:") if unit == ("K" or "k"): print("Weight in Pounds: ", wt * 2.205) elif unit == ("L" or "l") : print("Weight in Kilogram: ", wt / 2.205)

      @blengblong01712@blengblong01712Ай бұрын
    • Theres small mistake on the first exercise, on the bool

      @rosswo834@rosswo834Ай бұрын
  • Three years ago, I viewed this video,and now,I hold the position of Sr.Python developer. Gratitude to Mosh for the guidance.

    @tharmaraj86@tharmaraj865 ай бұрын
    • congratulations!

      @Ndujlz@Ndujlz3 ай бұрын
    • Mentor me please!

      @ots9358@ots93583 ай бұрын
    • @@ots9358me too please 🙏

      @iyaiya9819@iyaiya98193 ай бұрын
    • Good job, my little indian friend

      @sparkdrive2900@sparkdrive29003 ай бұрын
    • Im encouraged by this post

      @antanette1505@antanette15053 ай бұрын
  • For those who are struggling to learn Python, like I did, here is a game changing tip: avoid long complicated tutorials you see online. You need to walk before you can run. Start with very basic Books. Once you get them right, learning everything else becomes much easier. Edit: For those asking about the books, the best basic one is Javascript In Less than 50 Pages. It`s about Javascript but it is the fastest to learn the conceps that will be useful in any programming language. Second I would recommend A Smarter Way to Learn Python. Your knowledge will transform.

    @jonathanh8298@jonathanh8298 Жыл бұрын
    • Thanks for your input. I have zero computer science experience and struggle with understanding when to use brackets, colons , quotation marks etc. which usually nobody explains in videos, then I wonder why my code doesn't work and take forever to fix it

      @helpanimals-@helpanimals- Жыл бұрын
    • How can l get the JavaScript book

      @nhanaquamijr2650@nhanaquamijr2650 Жыл бұрын
    • @@nhanaquamijr2650 same question here

      @waddo777dlc2@waddo777dlc2 Жыл бұрын
    • Sorry but I'm not going to buy a book for just one "it's game changer" comment. Any good resources that are actually free for the curious?

      @jothain@jothain Жыл бұрын
    • This is so true! I struggled with both basic programming and math. Reading the very simplest form and learning the least complex items upfront was SO useful. Do that first, then visit youtube tutorials- you'll see an immense difference.

      @rsukut5866@rsukut5866 Жыл бұрын
  • I learned so much in one hour and actually did all the examples. Great content.

    @wiiori4618@wiiori46182 ай бұрын
  • Thanks for this. Getting back into coding after almost a decade away and this was a great way to be introduced to the syntax of a new language

    @WingZeroType@WingZeroTypeАй бұрын
  • I’ve been doing python classes for 4 weeks now and your 1 hour has taught me more than going to class for 4 hours

    @matthewrennie1110@matthewrennie11104 ай бұрын
  • Thanks Mosh! ❤ After struggling for 1 year with complicated tutorials, I finally learned Javascript and Python! I did with the help of your videos and a few good books. I got hired this week and I'm here to say thank you! Edit: For those asking, I learned with the books 'Javascript In Less than 50 pages' for the basics of programming and 'Smarter Way to Learn Python" to develop my knowledge on Python. Learning anything else becomes much easier after that.

    @meilinfjellstad7168@meilinfjellstad716810 ай бұрын
    • Plz tell me the name of those books.❤

      @Phoneography_adventures@Phoneography_adventures10 ай бұрын
    • @@Phoneography_adventures the books are 'Javascript In Less than 50 pages' for the basics of programming and 'Smarter Way to Learn Python" for Python

      @meilinfjellstad7168@meilinfjellstad716810 ай бұрын
    • 5 min in this video and I figured it is too much for a complete beginner like me and had to find a slower way to take in this information. After reading your comment I was compelled to look up the book you mentioned "Javascript in less than 50 pages," and after purchasing I must say, I haven't ever been this excited to learn anything in my life. Thank you!

      @williamsusa5067@williamsusa506710 ай бұрын
    • 30:22 got a quick question. in my pycharm it shows the answer is false whereas in Mosh's pycharm it shows true. IS there something wrong with my pycharm?

      @user-og8di9iq9f@user-og8di9iq9f10 ай бұрын
    • ​@@williamsusa5067 e

      @boismaytkarol8915@boismaytkarol891510 ай бұрын
  • Mosh you trully are an amazing teacher anyway this is my answer to ex3 weight= int(input("Weight: ")) unit= input("(K)g or (L)bs: ") if 'k' in unit or 'K' in unit: converted = weight / 0.45 print("Weight in Lbs: " + str(converted)) elif 'l' in unit or 'L' in unit: converted = weight * 0.45 print("Weight in kgs: " + str(converted))

    @user-xc9fn8cz4x@user-xc9fn8cz4x2 ай бұрын
    • Thank you bro! I had the same answer as you but I said “else if” instead of “elif”. That’s why my code didn’t work! Thanks for helping me!

      @leonaise7546@leonaise75469 күн бұрын
  • this was very useful. I got stuck at 50% on a python course, and found this to be very helpful to go over everything I had seen on that class from a different angle. The way you talk goes more at the speed that I can process information. I will be watching the 6hr full python course for beginners to cement all this info.

    @ilyahohenstein692@ilyahohenstein692Ай бұрын
  • I'm literally only like 5 minutes in and this is making more sense then my weeks of classes. Sir you are amazing. You need to win some sort of award for the service you are doing for the millions of people watching. You are opening doors and potential futures for people. This could be life changing. You gained a subscriber.

    @everestdennis4792@everestdennis47922 жыл бұрын
    • I 100% agree!!!!

      @prodgers71@prodgers712 жыл бұрын
    • @@prodgers71 me too! five minutes in i made a 10 line code for myself!! everything i knew was variables and the print function. that's it.

      @shnitsel@shnitsel2 жыл бұрын
    • YAH BRO THIS GUYS TOTAL LEGEND MAKES IT TOO EASY he won in best tech youtuber 2021 he deserved man sat for ove 1 hour or maybe more and uploads it for free i watch every of his full to pay off hardwork.

      @sarthak7708@sarthak77082 жыл бұрын
    • he made another subscriber

      @MichaelPlayz_@MichaelPlayz_2 жыл бұрын
    • He’s too good tbh, A gem

      @ugonnaubaka5048@ugonnaubaka50482 жыл бұрын
  • Ik he won’t see this, but this was such a clear display of how to understand the language at a base. Felt like my class expected us to juggle so much info at once without going over the basic lessons again. This is exactly what I needed as a refresher so thanks

    @Proche27@Proche277 ай бұрын
    • same, class is a mess in my brain so scattered and too advanced

      @AleeraLex@AleeraLex5 ай бұрын
    • L @@AleeraLex

      @AdvaitBanerji@AdvaitBanerji5 ай бұрын
    • True

      @yourlocalonionguy9674@yourlocalonionguy96744 ай бұрын
    • Exactly! Like my intro class needed a freaking intro class haha

      @nickjames2651@nickjames26513 ай бұрын
  • took me 4 days to get through but I did. Now moving on to learning more. Thanks a lot for taking your time to do this.

    @KevTheGalaxybender@KevTheGalaxybender3 ай бұрын
  • Very helpful, thank you! Wonderful to see great videos like this with some many deserved views 😊.

    @platoschauvet@platoschauvet2 ай бұрын
  • I'm learning because I'm tired speaking with customers on the phone for 40hrs every week. I almost quite my job today, but I want to have an alternative. Coding is something I've always wanted to learn, so here I am. Thank you for sharing your knowledge

    @jackcoquillon8975@jackcoquillon8975 Жыл бұрын
    • lol right with you man

      @cameronreed4476@cameronreed4476 Жыл бұрын
    • help desk support for 15 years network support for 2 im freaking over it

      @ahowardcg@ahowardcg Жыл бұрын
    • exactly!. working on my videos rt now to get them this good and explained well. feedback is appreciated

      @pythonez8719@pythonez8719 Жыл бұрын
    • im in the same boat man! lol

      @geezygaming711@geezygaming711 Жыл бұрын
    • @@pythonez8719 preciate you doing that. I'm subscribed

      @jackcoquillon8975@jackcoquillon8975 Жыл бұрын
  • Im totally new to python. I have watched many videos and all seemed good, but after this one I actually feel like I learned something. Awesome thank you

    @benjecklin7806@benjecklin7806Ай бұрын
  • Thank you for such a great class! so precise and easy to follow. Grateful for teachers like you Mosh :)

    @IndianJalpariHere@IndianJalpariHereАй бұрын
  • I am a Big Picture high school student, and I am studying to be a game developer using Python. I was told to learn the basics first, I already knew a good bunch of the basic but still needed to learn, I found some websites and videos, but nothing was as good as this video. Even if it is 2 years old, it still helped a lot. It didn't take me an hour though, I was taking notes, I was coding at the same time he did, I was pausing and rewatching pieces and I rewatched the video more than once. This 1 hour video turned into 2 weeks for me. Worth it. Thanks a lot Mosh.

    @513RR4@513RR48 ай бұрын
    • Still a long way to go before becoming a game developer but knowing the basics is definitely necessary.

      @martinmcnulty8155@martinmcnulty81557 ай бұрын
    • keep it up

      @mitsu1625@mitsu16257 ай бұрын
    • How's it going? I'm doing the same mind sharing your contact

      @MK-ib8ch@MK-ib8ch4 ай бұрын
    • you should try taking up c++, if im not mistaken, game developments use c++ more rather than Python. For example, Unreal Game Engine uses c++

      @torivega017@torivega0172 ай бұрын
    • So cool I'm doing the same thing- first I watch one part of the video to process it mentally, then I watch it for the second time and write notes in Word and then I watch it for the third time and actually try it out once I understand how it works. And then I do the practice part by myself👍

      @luckyluck9259@luckyluck92599 күн бұрын
  • I’m 32 years old. Father of 3. Dead end job after dead end job. Finally sat down with my wife and talked about what I’d like to do in life. Everything I said centered around technology and I really like the idea of coding/programming. Decided I’m going to see if I can learn it and if I can I will learn it and apply it and start a career. Thank you for this.

    @claydice1315@claydice13156 ай бұрын
    • good luck brother.

      @krishnamohanm8569@krishnamohanm85696 ай бұрын
    • good luck man

      @zombiebotnet343@zombiebotnet3436 ай бұрын
    • @@zombiebotnet343 thank y’all. I downloaded python (pycharm) last night. And today I’ve been doing some free courses online to learn it. I’m literally starting at zero but I can already tell I really enjoy this. I know this sounds corny but I made a triangle last night lol. And was so excited that I made a triangle out of computer code.

      @claydice1315@claydice13156 ай бұрын
    • I've heard of people getting out of dead-end jobs just because of this mentality combined with Python before, allthewhile increasing their pay massively. Definitively possible :)

      @Gorilla69@Gorilla696 ай бұрын
    • Did the video work?

      @MoonyFeathers@MoonyFeathers6 ай бұрын
  • Ans of the second exercise weight = int(input("Weight = ")) weight_in = input("(K/k)for KG or (P/p) for pound = ") if weight_in =="k" : out_weight = weight * 2.20462 weight1 = round(out_weight, 3) print("The weight in Pound = ", weight1) elif weight_in =="K" : out_weight = weight * 2.20462 weight1 = round(out_weight, 3) print("The weight in Pound = ", weight1) elif weight_in =="p" : out_weight = weight / 2.20462 weight1 = round(out_weight, 3) print("The weight in kg = ", weight1) elif weight_in =="P" : out_weight = weight /2.20462 weight1 = round(out_weight , 3) Your video was very help full. I passed my grade 8 finals because of you.

    @magicgaming1715@magicgaming17152 ай бұрын
    • Thanks for letting me double check, but the code could be smaller or simpler, with a very small google search to help with the lower case, though one could replace it instead with just CAPATALISE. weight = float(input("Weight: ")) unit = input("(K)g or (L)bs: ") if unit.casefold() == "k": weight = float(weight) * 2.205 print("Weight in Lbs = " + str(weight)) else: weight = float(weight) / 2.205 print("Weight in Kg = " + str(weight)) Edit: I just realised that he also covered the answer in the video, so my comment is kinda pointless. But oh well, I got to share my answer though so that's a plus.

      @The_Haunter@The_Haunter2 ай бұрын
    • 🎉

      @rjewi1671@rjewi1671Ай бұрын
  • Hi Mr moshfegh am very glad to find you here and see you are a popular teachers on here :) and i proud of to you

    @mohsenmomeni007@mohsenmomeni0072 ай бұрын
  • your english is really easy to understand for someone who is not a native speaker, thanks!!

    @Marcos-nl7el@Marcos-nl7el3 жыл бұрын
    • Hey.. Same here😅

      @user-ef7ks5kj5p@user-ef7ks5kj5p3 жыл бұрын
    • I agree 👍

      @sarakamili6780@sarakamili67803 жыл бұрын
    • He hacking your brain with Python

      @Linuxfy@Linuxfy3 жыл бұрын
    • indeed

      @podonomonono6145@podonomonono61453 жыл бұрын
    • Same here 😁

      @omnamahshivay761@omnamahshivay7613 жыл бұрын
  • You're like one of those good teachers that lead your students towards a mistake to teach them what and how something could go wrong then, teach how to do it properly. Loving this.

    @Drt0Kkdo@Drt0Kkdo2 жыл бұрын
    • The first time he did it, I didn't unpause, tried to alter it, and made more code trying. Eventually unpaused frustrated, and was honestly happy it went like that after the explanation, it's gonna stick a lot better now because of that.

      @bryantaylor683@bryantaylor683 Жыл бұрын
  • tysm ... im 12 so i don't really understand a lot of coding tutorials but i always had a passion for coding with this tutorial i learnt more about python

    @theuglysweatr3628@theuglysweatr36282 ай бұрын
    • Same I m 12 too and I really want to learn it and I want to be a good hacker 😅😊

      @respect-ym2os@respect-ym2os11 күн бұрын
  • i have a midterm next week and this covers everything we've learned in class so far! currently studying along at home w my flashcards. i really liked the "remote" analogy, the way you explain error messages and what data types can and cant do! thank you so much!

    @nadiuhh98@nadiuhh9821 күн бұрын
  • I started my first in-person university computing class last week, having only previously done a month of education in computing during eleventh grade. This video was extremely helpful in getting me caught up to where I need to be to succeed in my class.

    @behindthebros3248@behindthebros3248 Жыл бұрын
  • Mosh is the best programming teacher on KZhead!❤

    @morhogeg@morhogeg3 жыл бұрын
    • @@programmingwithmosh yes sir, you are my guru

      @hardeepkanaujia@hardeepkanaujia3 жыл бұрын
    • @@programmingwithmosh sir , I was waiting for this only thanks but I saw the previous too. 2020 pythan

      @lokrajkoundal4175@lokrajkoundal41753 жыл бұрын
    • I also agree with you

      @sulemantasawar3265@sulemantasawar32653 жыл бұрын
    • Me think Mosh is the best programmer teacher 👨‍🏫 too

      @neilyang2957@neilyang29573 жыл бұрын
    • @@neilyang2957 Absolutely. Mosh is the best. I am just 11 but now I know HTML,CSS, JavaScript,python because of Mosh😀

      @narendirank7501@narendirank75013 жыл бұрын
  • This is just perfect. Not so fast not so slow. Covered every scenario. Just too good

    @viplavgangawane4395@viplavgangawane4395Ай бұрын
  • Hi Mosh! I am learning Python for automation. I just graduated in Cybersecurity and computer networks, and I found your video very helpful! Thanks!

    @CyberEd24@CyberEd2423 күн бұрын
  • Mehn I've been a lazy programming student but I just can't stop learning with your videos, so straight forward . thanks Mosh

    @barrackroy9776@barrackroy97762 жыл бұрын
  • I love how every time he says "Let me show you" it's unlike any other teacher trying to explain anything - he does such an good job!

    @et2608@et26083 жыл бұрын
    • Teachers are useless at explaining but not all of them

      @arkkingom8191@arkkingom81912 жыл бұрын
  • After a year search of python courses as I am not from tech background...this is the first video i completed and understood...omg thanks a lot...I will redo this video course like 2-3 times and then go for the full course

    @harshakalluri4455@harshakalluri44552 ай бұрын
    • I"m still in the not understanding category lol

      @dmcstudio@dmcstudio14 күн бұрын
  • You made it so simple! Thankyou Mosh!!

    @jayasubha96@jayasubha962 ай бұрын
  • 10 minutes in and i already learned more than i did from my high school teacher

    @bigsteppa42@bigsteppa423 жыл бұрын
    • samee

      @aravindsrikarthigeyan1095@aravindsrikarthigeyan10953 жыл бұрын
    • Sameee

      @prabothmalsha4092@prabothmalsha40923 жыл бұрын
    • @@prabothmalsha4092 more than just sitting there for an hour of 1 concept😂

      @kirtanpatelium3065@kirtanpatelium30653 жыл бұрын
    • @@kirtanpatelium3065 😂😂😂

      @prabothmalsha4092@prabothmalsha40923 жыл бұрын
    • @@prabothmalsha4092 You learn python in highschool? wow

      @sonishn5222@sonishn52223 жыл бұрын
  • Currently recovering from TBI an struggle with learning conditions. Your videos are better then the digital book at my online school. Thank you for all your efforts.

    @vinling2767@vinling27672 жыл бұрын
  • I'm in year 9 and chose computer science for my GCSE. I'm trying to learn this early so it makes it easier later on. This was very helpful and I'm understanding most of it thanks to you.

    @swwiper8965@swwiper89652 ай бұрын
    • gl fam

      @user-cj4wm1ty5r@user-cj4wm1ty5rАй бұрын
  • I’ve been taking classes at uni and they have failed miserably at teaching this language compared to this tutorial/beginner class. I’ve watched a total of ten minutes so far and feel like I know much more now than I did after watching and reading hours of content from Uni. I highly recommend watching this video if you’re interested in learning Python. Mosh (who is providing the tutorial) speaks in a calm and clean manner which resonates well with audiences. And he also truly explains what he is doing at any given moment.

    @user-ui4jb5pj1i@user-ui4jb5pj1i3 ай бұрын
  • As a programming newbie, I can say that this has simplified Python to a point that I am wholly interested. Awesome job, Mosh!!

    @UB0NG@UB0NG2 жыл бұрын
    • Wow ok Virgin

      @euroking3941@euroking39412 жыл бұрын
    • @@euroking3941 tf

      @pelomalino9715@pelomalino97152 жыл бұрын
    • @@euroking3941 youre the kid with the long hair and sits on the back of the class to only make corny and unfunny remarks about someone's mom and then dont talk for the next month and a half

      @levimagee2459@levimagee24592 жыл бұрын
    • ​@@euroking3941 no need to project your sexual frustration on others

      @egg2586@egg25862 жыл бұрын
    • Im a newbie at this myself. I want to try this but im worried about messing up my PC. If I make a mistake with this program can I harm my PC?

      @mattjacobson3616@mattjacobson36162 жыл бұрын
  • Mosh explains everything thoroughly and never misses on a single part. He has challenges for us so that we take what we learned in the past and implement it in our code. I am still in the middle of the course but I can say that this channel is the #1 channel for those who want to learn to code! Keep it up!!

    @AG-fl9jx@AG-fl9jx3 жыл бұрын
  • at 15:08 now, this is so fun learning and you're really good at explaining. this is my exercise 2 i would like to share /* exercise 2 */ first_number = input("enter first number: ") second_number = input("enter second number: ") x = int (first_number) y = int(second_number) sum = x+y print(sum) how did i do compared to others? im a total newbie humble to learn python

    @Stekaren@StekarenАй бұрын
  • Excellent course. Very comprehensive and well explained!

    @konstantinossooutlis532@konstantinossooutlis5322 ай бұрын
  • I'm learning so I can teach my sister so she can pass her class.

    @sethsilber6889@sethsilber68893 жыл бұрын
    • that is so sweet of you :)

      @kaylahbunny@kaylahbunny3 жыл бұрын
    • Adopt me bro!

      @sruthisammeta2059@sruthisammeta20593 жыл бұрын
    • Wow u r so adorable bro❤️

      @sanjayuniyal9504@sanjayuniyal95043 жыл бұрын
    • whaaaaat? Such a brother. You go champ!

      @birdhumming526@birdhumming5263 жыл бұрын
    • give this to your sister

      @wopples3822@wopples38223 жыл бұрын
  • Now THIS is superlative instruction; teach a concept, and then demonstrate it. That you include errors is a stroke of genius! The nuances of programming languages can be difficult to understand at first, but by showing things going WRONG, you also show how to CORRECT the mistakes. This is just brilliant work. Thank you! Subscribed as hell!

    @paulcantshutup@paulcantshutup2 жыл бұрын
    • Dude as I was reading this it happened! That’s a really nice touch, great education technique

      @Linkolite@Linkolite2 жыл бұрын
    • Jesus loves us all that's why he died for our sins.

      @trspanda2157@trspanda2157 Жыл бұрын
    • @@trspanda2157 fake

      @barknburcu5766@barknburcu5766 Жыл бұрын
    • @@barknburcu5766 wake up before it gets too late. Don't find yourself in hell later, while ignoring this message.

      @Daniel-oc2mu@Daniel-oc2mu Жыл бұрын
    • @@Daniel-oc2mu what?

      @barknburcu5766@barknburcu5766 Жыл бұрын
  • man i have learned in this hour video what i could not learn for a year else where. the way he explained things make it so fun to do.

    @mikehamoudi8629@mikehamoudi86293 ай бұрын
  • Ex 1: name=“john smith” age=“20” print(“we check in a patient named”+name) print(“He is”+age+”years old”) print(“He is a new patient”) Ex 2 : first =input(“first:”) second=input(“second:”) sum= float(first)+float(second) print(sum) ex 3: weight=float(input("enter the weight here : ")) type=input("what unit your weight is ? (K) for kg or (l) for bs : ") if type.upper()=="K" : convert= weight/0.45 print("weight in LBS : " + str(convert)) elif type.upper()=="L" : convert= weight*0.45 print("weight in KGS : "+ str(convert)) print("DONE")

    @rahafal-hatab4993@rahafal-hatab49932 жыл бұрын
  • Excellent Course. No distraction, No crap. Just explained with so much ease and comfort. Makes so much sense for every minute of the hour!!!

    @Akhan4u@Akhan4u2 жыл бұрын
  • I just discovered this channel and I loved it. Hi Mosh, this is Kerem at Ministry of Coffee ;)

    @kkucukcelebi@kkucukcelebi2 ай бұрын
  • I know my exercise 1 may be simple but it is ultimately what I know right now in Python as I am a new user who is in construction and has only been exploring python for about a few hours now. Thank you for your time doing this tutorial! print("Welcome to BFU Hospital Check-in") print(input("What is Patient's Name?")) print(input("What is Patients Age?")) print(input("New patient Y/N?"))

    @builderjake8991@builderjake899124 күн бұрын
  • Just completed this crash course, and I am super grateful to you, Mosh, for explaining these basics in the simplest and most interesting way ever. Thank you. You have gained a follower from the mountain Kingdom of Lesotho.

    @tsetsanakhobotlo4823@tsetsanakhobotlo48233 ай бұрын
  • Im hooked Instantaneously for the straightforward no time wasting, and simple explanatory videos. Became a subscriber immediately.

    @paramveerssachdeva@paramveerssachdeva2 жыл бұрын
  • I am starting a bootcamp soon and want to learn everything I can, I will be subscribing to your channel - thank you for doing this - great channel

    @user-nu1yv1bq4d@user-nu1yv1bq4d2 күн бұрын
  • Thanks for the Python intro! I want to automate pulling data from word file reports and then put that information into an excel tracker - currently my team has to do it manually. I’ll look into your course to see if that will get me there quickly!

    @MarisaSiS@MarisaSiSАй бұрын
  • I watched this many times. As a beginner, this is very useful to me. Thanks Mosh.

    @premkarki2@premkarki211 ай бұрын
  • I’ve tried lots of different methods to help me learn code, and this video is by and far one of the best resources that has helped solidify some of the more abstract terms related to coding. Absolutely fantastic job.

    @rowanoaks4576@rowanoaks4576 Жыл бұрын
  • I'm from philippine and want to shift course about programming. Thank you for free tutorial so much appreciated.

    @ambygonzales1077@ambygonzales1077Ай бұрын
  • Loved the hour long tutorial. Great stuff

    @UltraGamerXYZ@UltraGamerXYZ3 ай бұрын
  • 0:00:00 Introduction 0:00:30 What You Can Do With Python 0:01:15 Your First Python Program 0:05:30 Variables 0:09:08 Receiving Input 0:10:48 Type Conversion 0:18:49 Strings 0:23:41 Arithmetic Operators 0:25:59 Operator Precedence 0:27:11 Comparison Operators 0:28:52 Logical Operators 0:31:06 If Statements 0:36:16 Exercise 0:41:42 While Loops 0:45:11 Lists 0:48:47 List Methods 0:52:16 For Loops 0:54:54 The range() Function 0:57:43 Tuples

    @yiwantao9622@yiwantao96227 ай бұрын
    • Thanks 😊

      @user-ww7fq6kd1o@user-ww7fq6kd1o6 ай бұрын
    • Absolute G

      @tyler4095@tyler40956 ай бұрын
    • Absolute OH

      @KalavathiBannuru@KalavathiBannuru6 ай бұрын
    • thanks

      @pijushbiswas2014@pijushbiswas20146 ай бұрын
    • @@pijushbiswas2014 you do realise that mosh already put those in the link area, right?

      @ElementalStudios_1@ElementalStudios_16 ай бұрын
  • I am taking GCSE computer science and one of the main tips i got was to learn to code. Watching this one hour tutorial, I have learned more in two hours than I did in 5 lessons of python tutoring at school. Thanks mosh.

    @f1memelord72@f1memelord72 Жыл бұрын
  • I'm learning python for fun cuz I've always been interested in coding for a long time now though being med student. They said it's gonna be difficult for me as I'll be learning it from scratch but I hardly find this difficult and I'm glad I came across this video.

    @zoyafatima5345@zoyafatima53452 ай бұрын
  • Hi Mosh, I'm from a supply chain backgrounds and I'm learning python for machine learning and Data science. Thank you.

    @sreenivasapenoupotou7928@sreenivasapenoupotou79282 күн бұрын
  • I just print "Hello World" in the terminal. I'm waiting for an email from Google Software Engineer.

    @Linuxfy@Linuxfy3 жыл бұрын
    • xd

      @realnice3672@realnice36723 жыл бұрын
    • you got no chance. i have an input for your age and then prints your age. sorry but im getting in google :)

      @nevang6314@nevang63143 жыл бұрын
    • Aww

      @aryangirijan3008@aryangirijan30083 жыл бұрын
    • *i remembered the brackets, you have no chance*

      @HarryMator@HarryMator3 жыл бұрын
    • @@HarryMator sad I remember input function not brackets unlike u *no one stands against me now*

      @aryangirijan3008@aryangirijan30083 жыл бұрын
  • I’m a housewife but I also want to do some remote job in IT while caring for my family Thanks for this mosh I hope to be a python expert one day

    @hamdallahsanusi737@hamdallahsanusi7372 жыл бұрын
    • Good Luck!

      @mr.creeper6484@mr.creeper64842 жыл бұрын
    • How has your journey been so far? Where are you now in terms of coding?

      @Senorpoontang@SenorpoontangАй бұрын
  • Man! That took a huge leap at "If Statements". This is my first experience with coding. Gunna need a bunch more experiences. Coming back for "While Statements" tomorrow after Wrestlemania.

    @codyjacobson7975@codyjacobson7975Ай бұрын
  • Im here to learn Python because i work in RPA, lowcode so far (Visual Programming, some javascript). After watchin this video I can tell you this is one of the best tutorials ive ever seen. You make it clear, simple and entertaining. Suscribed, now straight to the full course. Thanks man

    @gonzaloalbert3538@gonzaloalbert3538 Жыл бұрын
  • Thank you! I've been out of practice for years, and with this video, all of the basics came flooding back to me. Just what I needed

    @indiana1120@indiana11202 жыл бұрын
  • thanks, Mosh. Love it. one of the best videos

    @apollogt5506@apollogt55062 ай бұрын
  • Thank you very much. I now have a good starting point in Python Programming

    @vincentsimoko5438@vincentsimoko5438Ай бұрын
  • as someone who legit struggled for a few years trying to start learning python, trying to understand and comprehend python because it's too technical, this has made learning python a whole lot more easier and digestible compared to self learning on Kaggle, etc. Thanks a bunch Mosh for making learning feel easier!!

    @janicelim1039@janicelim10392 жыл бұрын
    • python is, i believe, one of the simplest and least technical languages

      @exilley2134@exilley21342 жыл бұрын
    • @KenBo Slice bruh

      @hybridhamburger1781@hybridhamburger17812 жыл бұрын
    • You got this. Practice more.

      @magicmarie8403@magicmarie84032 жыл бұрын
    • @KenBo Slice That's what she said

      @thanosnoctem4473@thanosnoctem44732 жыл бұрын
  • 8:49 Patient_Name = "John Smith" Patient_age = 20 is_new = True print(Patient_Name, Patient_age, is_new) 15:00 First_Number = input("First: ") Second_Number = input("Second: ") Final_Number = float(First_Number) + float(Second_Number) print("Sum: " + str(Final_Number))

    @ArnavBoom@ArnavBoom Жыл бұрын
    • thanks

      @18782.@18782. Жыл бұрын
    • I did this first = int (input ("First Number")) second = int (input ("Second Number")) print(first + second)

      @tomhartley5086@tomhartley5086 Жыл бұрын
    • first = float (input ("First Number")) second = float (input ("Second Number")) print(first + second) is better :)

      @tomhartley5086@tomhartley5086 Жыл бұрын
    • I made this: first_name = "John" second_name = "Smith" age = 20 New_Patient = True

      @DonnyDiamondd@DonnyDiamondd Жыл бұрын
    • I don’t know how I did it but it worked for me when I did this: Line 1: sum = int(20) + float(10.1) Like 2: print(sum) I ran it and it just shows 30.1. Is this technically correct? Why does it have to have input first, and second .. and all that extra stuff?

      @PeaceNinja007@PeaceNinja007 Жыл бұрын
  • This video motivated me to start in Python and programming itself! Thank you for the video, being direct and clear, it makes people feel like they are really understanding and improving in something like this! I will continue studying/practicing for sure, thank you very much!

    @artgus1356@artgus135620 күн бұрын
    • Yes thanks

      @ajasaadewunmi5054@ajasaadewunmi505420 күн бұрын
  • Solution of exercise 8:50 name = 'John Smith' age = 20 is_new = True 14:50 first = input("First: ") second = input("Second: ") sum = float(first) + float(second) print('Sum: ' + str(sum)) 36:16 weight = float(input("Weight: ")) unit = input("(K)g or (L)bs: ") if unit.lower() == "k": print("Weight in Lbs: " + str(weight * 2.2)) if unit.lower() == "l": print("Weight in Kg: " + str(weight / 2.2))

    @9Vivaan_Juwarkar@9Vivaan_JuwarkarАй бұрын
  • Thanks for this Mosh! Really easy to understand!! Looking forward to your 6hr course!

    @SpaceTacos60316@SpaceTacos603169 ай бұрын
  • I have decided to learn coding so I can improve my status in life. I'm tired of being a laborer, unskilled and uneducated. Today I take control of my life. Thank you!

    @albolvo@albolvo Жыл бұрын
    • Good for you! How is it working for you?

      @TasmanianTigerGrrr@TasmanianTigerGrrr Жыл бұрын
    • @@TasmanianTigerGrrr it's challenging not having a strong technology background. Lots of deep immersion and catching up but I will get there!

      @albolvo@albolvo Жыл бұрын
    • How's life going man?

      @oca1253@oca1253 Жыл бұрын
    • @@oca1253 it's been 2 weeks, dude

      @Sucrose__@Sucrose__ Жыл бұрын
    • @@oca1253 still plugging away, learning as much as I can as fast as I can. You wanna tutor me?

      @albolvo@albolvo Жыл бұрын
  • Now I see why people like Python. The use of lists and Item with a for is SO MUCH EASIER than C++ and Java. Thank whoever did this!

    @Ryan-Fkrepublicnz@Ryan-Fkrepublicnz2 ай бұрын
  • دمت گرم مشفق Really appreciate for tutorial. I'm a data analyst and use your video to learn Python.

    @ashkansaadvandi-cc8dx@ashkansaadvandi-cc8dxАй бұрын
  • Just made my own calculator that can only do addition, now I am waiting for a response from Google to see if they will hire me.

    @sacthus@sacthus3 жыл бұрын
    • looooool!! Genius!

      @peanutandginger5358@peanutandginger53583 жыл бұрын
    • I made a Calculator that can add, subtract, multiply and divide=)

      @Tiger_Labs_Code@Tiger_Labs_Code2 жыл бұрын
    • Lol

      @juinaik8038@juinaik80382 жыл бұрын
    • @@Tiger_Labs_Code great by seeing this video did u made it

      @rishithab6051@rishithab60512 жыл бұрын
    • @@Tiger_Labs_Code Same, but I was too lazy to add them all into the same program via if else statements, so i just made separate programs for each.

      @kyuwoo.@kyuwoo.2 жыл бұрын
  • This is a really helpful refresher for me ! thanks Mosh !

    @MahmoudBayoumi@MahmoudBayoumi Жыл бұрын
  • Great video for starting out I did the following with the weight assigment: pounds = 2.2046 weight = input("Please enter your weight: ") metric = input("(k)g or (l)bs: ") if metric.upper() == ("K"): sum = float(weight) * pounds print(f"Weight in lbs: {sum}") elif metric.upper() == ("L"): sum = float(weight) / pounds print(f"Weight in kg: {sum}") else: print("Please enter valid input")

    @Niels_Mortensen@Niels_MortensenАй бұрын
    • Do you know why using (if unit == "K" or "k" elif unit == "L" or "l") doesn't work?

      @blengblong01712@blengblong01712Ай бұрын
  • AMAZINGGGGG video!! I have been so confused until this very moment!

    @Proudmuslimah123@Proudmuslimah123Ай бұрын
  • I use to always fail my coding classes, but you make so much more easier! THANKS A LOT!

    @dcruan6771@dcruan67719 ай бұрын
  • Proudly presenting my solution to 36:16 weight = input("What is your weight?" ) unit = input("is it in kgs or lbs?" ) if unit == "k": convert = float(weight) / 0.4 print("weight is " + str(convert)+ "lbs") else: convert = float(weight) * 0.4 print( "weight is " + str(convert)+ "kgs") I feel like a rugged software architect! Sky is the limit 💪! Congrats Mosh, you make no talent whatsoever people like me, feel like software Einsteins!

    @bogdanivascu8970@bogdanivascu8970 Жыл бұрын
    • Hey, just trying to help out, your program will only work for lowercase "k" for kilograms, and if you use "K" it will go to the else part of the if statement. Also, when you're saying "else", it will take everything other than "k", so if you were to type "a" , "b", "c", etc.. it would count it as being something other than "k" :)

      @neokyu@neokyu Жыл бұрын
    • @@neokyu I do not understand 🤨

      @abiodunaghedo550@abiodunaghedo550 Жыл бұрын
    • why is my code not going beyond the if statement? Weight=int(input("Weight:")) unit=input("(k)g or (l)bs") if unit=="k": convert=Weight/0.45 print("Weight in kgs is "+str(convert)) else: convert=Weight*0.45 print("Weight in lbs is"+str(convert))

      @justirungu@justirungu Жыл бұрын
    • Here's my solution: weight = float(input("Enter weight: ")) unit = input("Enter unit, K for kg and L for lbs: ") if unit == "k" or unit == "K": print("Weight in kgs: " + str(weight/0.45)) elif unit == "l" or unit == "L": print("Weight in lbs: " + str(weight*0.45)) else: print("Invalid unit! ")

      @uroojfatima6456@uroojfatima64569 ай бұрын
  • Very easy to follow when watched at 0.75x speed 🙂. Bought the course, looking forward to binge watching it.

    @nsashby@nsashby2 ай бұрын
  • Since you asked. Im learning this cause i want to spice up my gaming worlds. Mostly minecraft. I have a ton of mods that i play with, but i dont get to try all of them as by the time im at the end game they are pointless to use sometimes. I want to have the ability to play again, and again in the same world with a different beginning and midgame each time. Some mods add npcs to make my world come alive, but to make them give quests or move to do stuff i need to learn how to code. Learning python will allow me to play in my own world for longer and when i add my friends to it they will hopefully have a similar experience to skyrim. The ability to play the game with new items, game mechanics, and cool quests! this will hopefully get them excited for whats next in thier next adventure. Thank you!

    @Dragonlover-kp6ki@Dragonlover-kp6ki19 күн бұрын
  • I really learned a lot from this video. Your voice, organization and one step at a time approach have encouraged me to learn more and more. I didn't feel tense at all. On the contrary, I felt it went smoothly and easily. Thank you so much.

    @daliaibrahim7352@daliaibrahim7352 Жыл бұрын
  • This is by far the most well explained python code for beginners. Thank you!

    @esthermwaura2073@esthermwaura20732 жыл бұрын
  • Thanks mr. Mosh, may God bless and continue to keep you

    @officialpro5767@officialpro5767Ай бұрын
  • 36:12 weight=float(input("Weight: ")) measurement=input("(K)g or (L)bs: ") if measurement=="k" or measurement=="K": conversion=round(float(weight/ 2.205),2) print("weight in Lbs: ",str(conversion),"Lbs") elif measurement=="l" or measurement=="L": conversion=weight*2.205 print("weight in Kg: ",str(conversion),"Kg")

    @satoshiketchum9111@satoshiketchum91112 ай бұрын
  • Hello, I appreciate your tutorial. I'm new to programming and have been reading online tutorials, online books, and together with it all your tutorials complement everything.

    @danielpainter628@danielpainter628 Жыл бұрын
  • second exercise code firstnumber=input("first number") secondnumber=input("second number") sum=float(firstnumber)+int(secondnumber) print(sum) thanks for all the time and education you have put for us mate really appreciate

    @tanahunriderprince@tanahunriderprince Жыл бұрын
  • my answer to exercise 3 for anyone wondering how to do it. weight = float(input("Weight: ")) question = input("(K)g or (L)bs: ") if question.upper() == "K": answer = weight / 0.45 print("The weight is " + str(answer)) if question.upper() == "L": answer = weight * 0.45 print("The weight is " + str(answer))

    @jadenwright4489@jadenwright448917 күн бұрын
  • already so excited i'm this far!!! exercise two: first = input("Enter first number: ") second = input("Enter second number: ") sum = float(first) + float(second) print(sum)

    @pythonLearner7638@pythonLearner7638Ай бұрын
  • started learning python with mosh through his KZhead tutorials. I watched the one which is over 6 hours and the other one which is 2 hours. Mosh explains everything crystal clear. I really had no prior knowledge in programming and this whole programming world or whatsoever. And it seemed very daunting to me. But I gotta say thanks to mosh I started believing that I might be able to actually make it in the programming world. I even purchased his complete python mastery course on his website. Best purchase I've ever made. No regrets ! In fact I wish I found mosh earlier ! I'm planning to move to HTML, CSS, and JavaScript after I finish python. Mosh, if you're reading this. I just want you to know that I'm really grateful for what you do and appreciate your hard work buddy :)

    @socialloner2548@socialloner25483 жыл бұрын
    • I will also purchase the entire course after the beginners course...

      @pleaseunsubscribeme8533@pleaseunsubscribeme85333 жыл бұрын
    • @@programmingwithmosh I just got a new job and they told me they would teatch me python so i wanned to learn first at home. i have some prio knowledge of html and css.

      @kovi2772@kovi27723 жыл бұрын
    • @@programmingwithmosh which tutorial i want to watch 6 hrs one or this video I'm new to coding please give me a reply sir

      @unknown-wy3ch@unknown-wy3ch3 жыл бұрын
    • yes he does indeed and sometimes I make a mistake and I like that because I can just go back in the video and try to figure out what I did and if it doesn't show then I have to be smart with it like just now I was doing a calculator and I was trying to do this print("Sum: " + answer) but it wasn't working so I looked back in the video, saw that it was a str it was printing and not an int and did this print("Sum: " + str(answer)) and now it works

      @AEWYU@AEWYU3 жыл бұрын
    • uhuh

      @akhilkakani31@akhilkakani312 жыл бұрын
  • This was very nice jumping in from the standpoint of someone who took lots of Java courses in school, I do however fear that without that prior knowledge I may have found myself a bit lost at points. Thank you for taking the time to create this video and for helping me begin my journey to becoming a python dev.

    @samurie894@samurie8945 ай бұрын
  • I'm here for data science! Thank you for your wonderful tutorials.

    @FishuaJo@FishuaJo2 ай бұрын
  • 36:57 my code is the one below, seems fine, works correctly weight = int(input("Whats Your Weight? : ")) type = input("(K)gs Or (L)bs? : ") if type == "K" or type == "k": a1 = weight * 2.20462 print("You are " + str(a1) + " lbs") elif type == "L" or type == "l": a2 = weight * 0.453592 print("You are" + str(a2) + " kgs")

    @gameverse-alchemy15@gameverse-alchemy1520 сағат бұрын
  • Thank you for taking your time to help me learn. Exercise 1: print("Check In:") first_name = "John" last_name = "Smith" age = 20 new_patient = True patient_name = first_name + " " + last_name print("Patient Name: ",patient_name) print("Age: ",age) print("New Patient: ",new_patient) Excercise 2: First_Num=float(input("First Number: ")) Second_Num=float(input("Second Number: ")) Sum=First_Num+Second_Num print("Sum: ",Sum) Excercise 3: weight = int(input("Weight: ")) unit = input("(K)g or (L)bs: ") if unit.upper() == "K": converted = weight / 0.45 print("The Weight in Lbs: ", converted) elif unit.upper() == "L": converted = weight * 0.45 print("The Weight in Kgs: " + str(converted))

    @nerokyi@nerokyi19 күн бұрын
  • Great tutorial, I was struggling to find a beginner-level tutorial for Python but this video helped me to understand the basics

    @amanpreet-dev@amanpreet-dev10 ай бұрын
KZhead