Python for Beginners - Learn Coding with Python in 1 Hour

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2024

Комментарии • 23 тыс.

  • @programmingwithmosh
    @programmingwithmosh  2 года назад +1091

    🔥Want to master Python? Get my Complete Python Mastery course: mosh.link/python-course
    📕Get my FREE Python cheat sheet: mosh.link/python-cheatsheet
    ⭐Python Projects for Beginners: ruclips.net/video/yVl_G-F7m8c/видео.htmlsi=11emtFyDccTKCGn7
    👍Subscribe for more Python tutorials like this: goo.gl/6PYaGF

    • @magombedzeelizabeth7411
      @magombedzeelizabeth7411 2 года назад +24

      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

    • @kamichavez6203
      @kamichavez6203 2 года назад +6

      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 :'(

    • @yilikalafework
      @yilikalafework 2 года назад +3

      why my pycharm defaultly create a main.py file

    • @TECHEXPO9
      @TECHEXPO9 2 года назад +4

      Hi sir
      I learn python

    • @raynkata_7014
      @raynkata_7014 2 года назад +6

      Thank you very much for the tutorial.
      Could you please update the link for the Python cheat sheet? The current one is not working

  • @Seraphvonteschen
    @Seraphvonteschen 3 года назад +28814

    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 couldn't go any further. You all are the best!

    • @CodingPerspective
      @CodingPerspective 3 года назад +940

      You can improve your coding skill with our videos

    • @toughcookie250
      @toughcookie250 3 года назад +1243

      Absolutely amazing, you will be rewarded for your hard work, never give up and keep pushing forward!

    • @massrdmdoer7348
      @massrdmdoer7348 3 года назад +359

      good for you man

    • @enjoybas
      @enjoybas 3 года назад +326

      wish you good luck. God bless you.

    • @madhatter2687
      @madhatter2687 3 года назад +602

      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.

  • @codingmadeclear2229
    @codingmadeclear2229 3 года назад +25611

    This guy, sat for 1 hour and talked about python, and then released it for free. legend

    • @Taste_off_life
      @Taste_off_life 3 года назад +261

      Is it really worth for beginners ?

    • @codingmadeclear2229
      @codingmadeclear2229 3 года назад +475

      @@Taste_off_life Yeah I think its an great course for beginners tbh

    • @pragmaticai
      @pragmaticai 3 года назад +22

      Here is another video called Python in One Hour published a few months before this one enjoy! ruclips.net/video/ie-hjFXlxTs/видео.html

    • @kirtanpatelium3065
      @kirtanpatelium3065 3 года назад +123

      @@codingmadeclear2229 true lots of knowledge for the beginners that have no idea🙏🏼

    • @salah1x
      @salah1x 3 года назад +334

      With 1.3M views, he made around 6,000 USD and counting. No one does anything for free

  • @tharmaraj86
    @tharmaraj86 11 месяцев назад +2902

    Three years ago, I viewed this video,and now,I hold the position of Sr.Python developer. Gratitude to Mosh for the guidance.

    • @Ndujlz
      @Ndujlz 10 месяцев назад +24

      congratulations!

    • @ots9358
      @ots9358 10 месяцев назад +17

      Mentor me please!

    • @iyaiya9819
      @iyaiya9819 9 месяцев назад

      @@ots9358me too please 🙏

    • @sparkdrive2900
      @sparkdrive2900 9 месяцев назад +26

      Good job, my little indian friend

    • @antanette1505
      @antanette1505 9 месяцев назад +15

      Im encouraged by this post

  • @NintendoSunnyDee
    @NintendoSunnyDee 2 месяца назад +31

    Thank you for this!
    I did all of the exercises in the video, but the only one I wanted to share was this one:
    weight = float(input("What is your weight? "))
    type = input("(K)g or (L)bs: ")
    constant = float(0.4536)
    if type.upper() == "K":
    value = weight / constant
    print(str(value) + " in Pounds")
    elif type.upper() == "L":
    value = weight * constant
    print(str(value) + " in Kilograms")
    else:
    print("Americans will use ANYTHING besides metric, huh?")
    print("Done")

  • @jonathanh8298
    @jonathanh8298 Год назад +5962

    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.

    • @helpanimals-
      @helpanimals- Год назад +104

      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

    • @nhanaquamijr2650
      @nhanaquamijr2650 Год назад +14

      How can l get the JavaScript book

    • @waddo777dlc2
      @waddo777dlc2 Год назад +4

      @@nhanaquamijr2650 same question here

    • @jothain
      @jothain Год назад +46

      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?

    • @rsukut5866
      @rsukut5866 Год назад +21

      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.

  • @matthewrennie1110
    @matthewrennie1110 10 месяцев назад +439

    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

  • @yiwantao9622
    @yiwantao9622 Год назад +561

    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

  • @programmingwithmosh
    @programmingwithmosh  2 месяца назад +16

    🚀Check out my new tutorial - Python Projects for Beginners: ruclips.net/video/yVl_G-F7m8c/видео.htmlsi=YPyZjwzQF4t7f023

  • @Balzz89
    @Balzz89 8 месяцев назад +431

    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]

    • @blengblong01712
      @blengblong01712 7 месяцев назад +11

      I'm wondering why (if unit == "K" or "k") doesn't work

    • @artgus1356
      @artgus1356 7 месяцев назад +5

      @@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

    • @blengblong01712
      @blengblong01712 7 месяцев назад +1

      ​@@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 7 месяцев назад +7

      @@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)

    • @rosswo834
      @rosswo834 7 месяцев назад +9

      Theres small mistake on the first exercise, on the bool

  • @meilinfjellstad7168
    @meilinfjellstad7168 Год назад +2676

    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.

    • @Phoneography_adventures
      @Phoneography_adventures Год назад +7

      Plz tell me the name of those books.❤

    • @meilinfjellstad7168
      @meilinfjellstad7168 Год назад +31

      @@Phoneography_adventures the books are 'Javascript In Less than 50 pages' for the basics of programming and 'Smarter Way to Learn Python" for Python

    • @williamsusa5067
      @williamsusa5067 Год назад +42

      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!

    • @Cloudiee-m4d
      @Cloudiee-m4d Год назад +2

      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?

    • @boismaytkarol8915
      @boismaytkarol8915 Год назад

      ​@@williamsusa5067 e

  • @claydice91
    @claydice91 Год назад +242

    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.

    • @krishnamohanm8569
      @krishnamohanm8569 Год назад +6

      good luck brother.

    • @zombiebotnet343
      @zombiebotnet343 Год назад +5

      good luck man

    • @claydice91
      @claydice91 Год назад

      @@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.

    • @Gorilla69
      @Gorilla69 Год назад +2

      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 :)

    • @Kaydoesnails
      @Kaydoesnails Год назад +1

      Did the video work?

  • @STK_Itsuka
    @STK_Itsuka 7 дней назад +2

    I have a programming course in college, and I need to complete a project within a month. You've been a great help. Thank you so much for your work and effort.

  • @everestdennis4792
    @everestdennis4792 2 года назад +3000

    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.

    • @prodgers71
      @prodgers71 2 года назад +21

      I 100% agree!!!!

    • @shnitsel
      @shnitsel 2 года назад +26

      @@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.

    • @sarthak7708
      @sarthak7708 2 года назад +18

      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.

    • @MichaelPlayz_
      @MichaelPlayz_ 2 года назад +1

      he made another subscriber

    • @ugonnaubaka5048
      @ugonnaubaka5048 2 года назад +3

      He’s too good tbh,
      A gem

  • @tanahunriderprince
    @tanahunriderprince Год назад +19

    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

  • @Proche27
    @Proche27 Год назад +570

    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

    • @AleeraLex
      @AleeraLex Год назад +7

      same, class is a mess in my brain so scattered and too advanced

    • @AdvaitBanerji
      @AdvaitBanerji 11 месяцев назад +1

      L
      @@AleeraLex

    • @yourlocalonionguy9674
      @yourlocalonionguy9674 11 месяцев назад +1

      True

    • @nickjames2651
      @nickjames2651 10 месяцев назад +3

      Exactly! Like my intro class needed a freaking intro class haha

  • @AbdulMolana-sc3oo
    @AbdulMolana-sc3oo Месяц назад +5

    This is the code I did if anyone is curious
    size=input("weight: ")
    selection= input(" (K)g or (L)bs: ")
    K= int(float(size))* 2.205
    L= int(float(size)) / 2.205
    if selection=="K" or "k":
    print(" weight in lbs: " + str(K))
    elif selection=="L" or "l":
    print( " wieght in kg: " + str(L))

  • @unstoppable2431
    @unstoppable2431 3 месяца назад +132

    📖 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

  • @BliceGaming
    @BliceGaming 7 дней назад +1

    weight = float(input("Weight: "))
    unit = input("(K)g or (L)bs: ")
    if unit.upper() == "K":
    print("Weight in Lbs:",int(weight*2.2))
    if unit.upper() == "L":
    print("Weight in Kg:", int(weight/2.2))

  • @3BnDo
    @3BnDo 6 месяцев назад +408

    I've taken a C++ in college years ago with a bad instructor that made me hate coding. Coming back with your simple and clear explanation to this nice language made me wanna learn more.
    Thanks a lot, Mosh.

    • @solitudeispeaceful
      @solitudeispeaceful 6 месяцев назад +8

      Same story...from then Coding looks like rocket science to me

    • @chaelynxzbetsayda8398
      @chaelynxzbetsayda8398 5 месяцев назад +1

      ​@AthmarMubarkis it hard? many people say programming needs a talent. I will go to college next year and I'm kinda not sure about my future in coding but I want it

    • @AnythingYashubh
      @AnythingYashubh 5 месяцев назад

      What degree did you did?

    • @countergravity6371
      @countergravity6371 5 месяцев назад

      @@chaelynxzbetsayda8398 Just take your time to understand each element implicitly and apply your own logic to it. You'll get there.

    • @sonozaki0000
      @sonozaki0000 4 месяца назад +4

      I had a similar experience! I failed a Python course at college in 2021 because it was structured oddly and the professor was too rude to ask for help (treated people like they were dumb for not getting it right away). this video was SO much easier to grasp, and now I'm embarrassed that I learned in one day what I failed to figure out over an entire summer course LOL

  • @bksanpvlog
    @bksanpvlog Год назад +444

    9:07 Exercise
    P_Name ="john Smith"
    P_age =20
    P_admit="New"
    print (P_Name ,P_age,p_admit)
    _________
    14:56 Exercise
    First_num=input("Enter Your First Num. ")
    Sec_num=input("Enter Your Sec Num" ")
    Sum =float(first_num+sec_num)
    Print ("sum is =" + sum)
    .....Also that's can by use for - * /
    _______
    18:02 str () function is use For combine the str with floating number
    _______
    In string 18:59 we have same Methods or Function
    Name.find () =find Same Index of char
    Name.uper() lower() =convert char to lower uper
    Name.replace()=replace the Char or String in sentence !
    In keyword =find is that available
    ______
    34:50 endant also called Body or block
    Add comment by #
    ____
    51:00 create A List ....this is Just like array
    Name ["BILAL" , "OSAMA" , "MAAZ"]
    51:10 There are same methods like
    Name.append (ali) =add name is last
    Name.insert (index , value ) =add name any where
    Name.remove(value ) = remove specific value
    Name.clear (list) =clear all list
    (1 in list name ) = is that available
    Len() =length of list
    53:19 for loop
    Syntex
    For data in Listname :
    Print (data)
    ___
    56:00 range(10) = add numbr from 0 to 10 use just these expiration
    Range(0 : 10 : 2) showe after 2 digit like 2 4 6 8

    • @basementcattiger6231
      @basementcattiger6231 Год назад +31

      for the first exercise right answer is `is_new = True` , not ' P_admit="New"'

    • @snikiniki7459
      @snikiniki7459 Год назад

      ​@@basementcattiger6231yall are slay For doing this omaga

    • @Blender-co6vd
      @Blender-co6vd Год назад +14

      @@basementcattiger6231 why? It is up to him what variable he chooses

    • @dedicategrinder88
      @dedicategrinder88 Год назад +3

      thanks, had to confirm if got right, no answers :(

    • @onayesabdullah21
      @onayesabdullah21 Год назад +2

      thank you

  • @albolvo
    @albolvo 2 года назад +129

    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!

    • @TasmanianTigerGrrr
      @TasmanianTigerGrrr 2 года назад +9

      Good for you! How is it working for you?

    • @albolvo
      @albolvo 2 года назад +22

      @@TasmanianTigerGrrr it's challenging not having a strong technology background. Lots of deep immersion and catching up but I will get there!

    • @oca1253
      @oca1253 2 года назад +2

      How's life going man?

    • @Sucrose__
      @Sucrose__ 2 года назад +4

      @@oca1253 it's been 2 weeks, dude

    • @albolvo
      @albolvo 2 года назад +6

      @@oca1253 still plugging away, learning as much as I can as fast as I can. You wanna tutor me?

  • @tumi2732
    @tumi2732 2 месяца назад +1

    15:06
    first_number= input("First: ")
    second_number = input("Second: ")
    third = float(first_number) + int(second_number)
    print("Sum: " + str(third))

  • @Drt0Kkdo
    @Drt0Kkdo 2 года назад +359

    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.

    • @bryantaylor683
      @bryantaylor683 2 года назад +5

      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.

  • @JeanVignes-f2z
    @JeanVignes-f2z 2 месяца назад +49

    I am 68 (but who's counting? ha-ha) and I'm interested in learning Python because my company is using Snowflake, which allows you to code within its worksheets in either ANSI SQL (which I have been using for decades) or Python. A programmer is a lot like a shark: you must always be moving forward or bad things will happen to you...and to your career. Three years after releasing this video, you are still helping people. Thank you!

  • @paulcantshutup
    @paulcantshutup 2 года назад +691

    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!

    • @Linkolite
      @Linkolite 2 года назад +7

      Dude as I was reading this it happened! That’s a really nice touch, great education technique

    • @trspanda2157
      @trspanda2157 2 года назад +7

      Jesus loves us all that's why he died for our sins.

    • @barknburcu5766
      @barknburcu5766 2 года назад +2

      @@trspanda2157 fake

    • @Daniel-oc2mu
      @Daniel-oc2mu 2 года назад

      @@barknburcu5766 wake up before it gets too late. Don't find yourself in hell later, while ignoring this message.

    • @barknburcu5766
      @barknburcu5766 2 года назад +1

      @@Daniel-oc2mu what?

  • @swayampattanaik1522
    @swayampattanaik1522 Месяц назад +1

    excercise 2:
    w = int(input("Input your weight: "))
    unit = input("Enter k for kg or l for lbs: ")
    if(unit=='k' or unit=='K'):
    res = str(w*2.2);
    print("weight in lbs: "+res)
    elif(unit=='l' or unit=='L'):
    res = str(w*0.45);
    print("weight in kgs: "+res)
    else:
    print("Please enter a valid input")

  • @aniruddh2087
    @aniruddh2087 Год назад +108

    Hi, Mosh. Am an absolute beginner. Thank you for the amazing video.
    First Exercise :
    First_Name = "John"
    Last_Name = "Smith"
    age = 20
    Patient_Type = "New"
    print(First_Name, Last_Name, age, Patient_Type)

    • @winnie3963
      @winnie3963 Год назад +1

      Wow

    • @destinyamenaghawon1863
      @destinyamenaghawon1863 Год назад +5

      Thanks alot, this was helpful. i,m also a beginner

    • @psychopillia7865
      @psychopillia7865 Год назад +11

      age = 20
      name = "John Smith"
      is_new = True
      print("Details of John Smith")
      print("Age =",age, "Name = ",name)
      if (is_new==True):
      print("The patient is new")
      else:
      print("This is an old patient")
      Here is bit more simple but advanced version hehe

    • @adambeck6799
      @adambeck6799 Год назад

      wait hold up that works ??? damn bro you so good hahahah
      @@psychopillia7865

    • @CubeHeadFanYoo
      @CubeHeadFanYoo Год назад

      you should not use if (is_new==True): you should use is and about the details of John smith you should change it to print("Details of %s.)%name thats it!@@psychopillia7865

  • @jackcoquillon8975
    @jackcoquillon8975 2 года назад +160

    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

    • @cameronreed4476
      @cameronreed4476 2 года назад +6

      lol right with you man

    • @ahowardcg
      @ahowardcg 2 года назад +1

      help desk support for 15 years network support for 2 im freaking over it

    • @pythonez8719
      @pythonez8719 2 года назад +2

      exactly!. working on my videos rt now to get them this good and explained well. feedback is appreciated

    • @RPGeezzy
      @RPGeezzy 2 года назад +1

      im in the same boat man! lol

    • @jackcoquillon8975
      @jackcoquillon8975 2 года назад

      @@pythonez8719 preciate you doing that. I'm subscribed

  • @513RR4
    @513RR4 Год назад +167

    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.

    • @martinmcnulty8155
      @martinmcnulty8155 Год назад +8

      Still a long way to go before becoming a game developer but knowing the basics is definitely necessary.

    • @cometbluestrike
      @cometbluestrike Год назад +4

      keep it up

    • @MK-ib8ch
      @MK-ib8ch 10 месяцев назад

      How's it going? I'm doing the same mind sharing your contact

    • @torivega017
      @torivega017 8 месяцев назад

      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++

    • @luckyluck9259
      @luckyluck9259 6 месяцев назад

      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👍

  • @Marcos-nl7el
    @Marcos-nl7el 4 года назад +696

    your english is really easy to understand for someone who is not a native speaker, thanks!!

  • @et2608
    @et2608 3 года назад +273

    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!

    • @arkkingom8191
      @arkkingom8191 3 года назад +3

      Teachers are useless at explaining but not all of them

    • @ammblackish1294
      @ammblackish1294 Месяц назад

      have noticed , there is the way ma brain opens whenever he utters

  • @hamdallahsanusi737
    @hamdallahsanusi737 3 года назад +95

    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

    • @mr.creeper6484
      @mr.creeper6484 3 года назад +1

      Good Luck!

    • @Senorpoontang
      @Senorpoontang 8 месяцев назад +3

      How has your journey been so far? Where are you now in terms of coding?

  • @dhuntersfam5548
    @dhuntersfam5548 Месяц назад +14

    Exercise 1
    Name = "Jhon Smith"
    age = 20
    Regular_Customer = False
    print (Name)
    print (age)
    print (Regular_Customer)

  • @socialloner2548
    @socialloner2548 4 года назад +67

    started learning python with mosh through his RUclips 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 :)

    • @pleaseunsubscribeme8533
      @pleaseunsubscribeme8533 4 года назад

      I will also purchase the entire course after the beginners course...

    • @kovi2772
      @kovi2772 4 года назад

      @@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.

    • @unknown-wy3ch
      @unknown-wy3ch 4 года назад

      @@programmingwithmosh which tutorial i want to watch 6 hrs one or this video I'm new to coding please give me a reply sir

    • @AEWYU
      @AEWYU 4 года назад +1

      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

    • @akhilkakani31
      @akhilkakani31 2 года назад

      uhuh

  • @margarethsanchez9102
    @margarethsanchez9102 Год назад +76

    8:55
    name = "John Smith"
    age = 20
    type = "New patient"
    print(name, age, type)
    15:07
    a= input ("First: ")
    b = input("Second: ")
    c = float(a) + float(b)
    print("Sum: " + str(c))

    • @Eleventyeleventh
      @Eleventyeleventh Год назад +3

      Mind if I copy your homework?

    • @KevinLin45
      @KevinLin45 Год назад +2

      @@Eleventyeleventh do it yourself dude.

    • @woolzem
      @woolzem Год назад +2

      Thank you ❤ day one learning

    • @simplekudos
      @simplekudos Год назад

      a = input("First: ")
      b = input("Second: ")
      sum = float(a) + int(b)
      print("Sum = " + str(sum))

    • @rima1661
      @rima1661 Год назад

      is it ok if i wrote it like this?
      first = input("Enter number")
      second =input("Enter number")
      instead of
      first = input("First: ")
      second = input("Second: ")

  • @UB0NG
    @UB0NG 3 года назад +849

    As a programming newbie, I can say that this has simplified Python to a point that I am wholly interested. Awesome job, Mosh!!

    • @euroking1337
      @euroking1337 3 года назад +4

      Wow ok Virgin

    • @pelomalino9715
      @pelomalino9715 3 года назад +22

      @@euroking1337 tf

    • @levimagee2459
      @levimagee2459 3 года назад +39

      @@euroking1337 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

    • @egg2586
      @egg2586 2 года назад +12

      ​@@euroking1337 no need to project your sexual frustration on others

    • @mattjacobson3616
      @mattjacobson3616 2 года назад +8

      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?

  • @MiracleMirror117
    @MiracleMirror117 Месяц назад +1

    15:03
    a=input("First: ")
    b=input("Second: ")
    sum= float(a)+float(b)
    print("Sum: ", sum)

  • @ArnavBoom
    @ArnavBoom Год назад +238

    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))

    • @18782.
      @18782. Год назад +5

      thanks

    • @NoobNoob70-1
      @NoobNoob70-1 Год назад +4

      I did this
      first = int (input ("First Number"))
      second = int (input ("Second Number"))
      print(first + second)

    • @NoobNoob70-1
      @NoobNoob70-1 Год назад +5

      first = float (input ("First Number"))
      second = float (input ("Second Number"))
      print(first + second)
      is better :)

    • @EpicViralShortsz
      @EpicViralShortsz Год назад +10

      I made this:
      first_name = "John"
      second_name = "Smith"
      age = 20
      New_Patient = True

    • @PeaceNinja007
      @PeaceNinja007 Год назад +4

      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?

  • @shahabuddin126
    @shahabuddin126 8 месяцев назад +49

    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.

  • @bogdanivascu8970
    @bogdanivascu8970 2 года назад +22

    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!

    • @neokyu
      @neokyu 2 года назад +2

      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" :)

    • @abiodunaghedo550
      @abiodunaghedo550 2 года назад

      @@neokyu I do not understand 🤨

    • @justirungu
      @justirungu 2 года назад

      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))

    • @uroojfatima6456
      @uroojfatima6456 Год назад

      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! ")

  • @barrackroy9776
    @barrackroy9776 3 года назад +80

    Mehn I've been a lazy programming student but I just can't stop learning with your videos, so straight forward . thanks Mosh

  • @PrimeGorilla
    @PrimeGorilla 2 года назад +341

    Exercise 8:50
    name = 'John Smith'
    age = '20 year old'
    status = 'New Patient'
    print(name, age, status)
    Exercise 14:50
    First = input('First number: ')
    Second = input('second number: ')
    Sum = float(First) + float(Second)
    print(Sum)
    Managed this one after some try and error😅

    • @Lemyn_Lime
      @Lemyn_Lime 2 года назад +13

      lol I had to cheat and look at the answer for the second one. Tried to do it the "lazy" way and kept accidentally combining the two numbers together.

    • @saluvideos142
      @saluvideos142 2 года назад +9

      age=20

    • @sagarkarki7059
      @sagarkarki7059 2 года назад +4

      Age variable should be integer type
      And you should use boolean expression for the last one of first exercise probably, i think!
      And yeah no quotaion for all data.

    • @zetxen5270
      @zetxen5270 2 года назад +26

      @@sagarkarki7059 so It should look like this?:
      name = 'John Smith'
      age = 20
      is_newPatient = True

    • @sagarkarki7059
      @sagarkarki7059 2 года назад +8

      @@zetxen5270
      Exactly sir.

  • @chicken7828
    @chicken7828 2 года назад +93

    first = input("First: ")
    second = input("Second: ")
    sum = float(first) + float (second)
    print ("Sum: " + str(sum))
    This is my basic Calculator coding when you gave us the little challenge I am proud to say that it was similar to yours
    thank you for this amazing free course

    • @myhatmygandhi6217
      @myhatmygandhi6217 2 года назад +8

      As a complete beginner I had no idea what to do 🤣

    • @SwoggersLOL
      @SwoggersLOL 2 года назад +7

      Thats an amazing start dude! You can clean up your code even further by merging lines. ie:
      sum = float(input("First: ")) + float(input("Second: "))
      print("Sum: ", sum)
      see its basically the exact same thing as what you have. but i saved space by immediately wrapping the returned string of Input inside the float and then immediately adding that to the sum variable. Then, instead of using + to concat strings, you can just use commas instead inside print statements. This is as advance as it really comes, and its totally optional. whatever it takes to solve the problem!

    • @rabia.bashir
      @rabia.bashir 2 года назад +5

      @@SwoggersLOL don't make it complex by cascading
      Keep it simple!!
      Here is mine:
      a = input("First: ")
      b = input("Second: ")
      sum = float(a) + float(b)
      print(sum)

    • @pineapplejuice1156
      @pineapplejuice1156 2 года назад +1

      @@SwoggersLOL Good code but complex. Even though you are writing less code, it is very confusing to understand as for example, what if I added a third number to be added to the equation? I will have to be digging around in the complex code to add it in when I can just simply make a new variable which is easier to read and just do a "+=" to the sum.

    • @sandhyasamuel7943
      @sandhyasamuel7943 2 года назад

      @@rabia.bashir Yeah🙂 Khaby#Simple

  • @bassazoid
    @bassazoid 29 дней назад

    36:20
    weight = int(input('Enter in weight to convert: '))
    unit = input('(K)g or (L)bs: ')
    if unit.lower() == 'k':
    weight = weight * 2.20462
    print('Weight in lbs: ' + str(weight))
    elif unit.lower() == 'l':
    weight = weight * 0.45392
    print('Weight in kgs: ' + str(weight))
    else:
    print('Unit does not exist, retry program')

  • @tsetsanakhobotlo4823
    @tsetsanakhobotlo4823 10 месяцев назад +94

    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.

  • @armarhb
    @armarhb 2 месяца назад +74

    36:20
    weight = float(input("Enter your weight in your unit: "))
    print("Put the corresponding letter for the unit you want to convert to: Put a 'L' for Lbs, or put a 'K' for KG")
    conversion = input("To what unit would you like to convert: ").lower()
    if conversion =="l" or conversion =="lb":
    result = weight * 2.20462
    print(f"{weight} Kg converted to Lb is {round(result, 2)} Lb")
    elif conversion =="k" or conversion =="kg":
    result = weight * 0.453592
    print(f"{weight} Lb converted to Kg is {round(result, 2)} Kg")

    • @galahadlance
      @galahadlance 2 месяца назад +8

      I did it shorter
      weight = input("Enter your weight: ")
      unit = input("If in kg type (K) and if in lbs type (L): ")
      if unit == "K":
      print("weight in lbs:" , float(weight) * 2.20462)
      elif unit == "P":
      print("weight in Kg:" , float(weight) / 2.20462)

    • @galahadlance
      @galahadlance 2 месяца назад +1

      I forgot giving option the lower case in the if statement, my bad.

    • @leylow01
      @leylow01 Месяц назад +1

      weight = input(“Weight: “)
      korlbs = input(“(K)g or (L)bs: “)
      if korlbs.upper() == “K”:
      print(f”You weigh {float(weight) * 2.2046} in pounds”)
      elif korlbs.upper == “L”:
      print(f”You weigh {float(weight) / 2.2046} in kilograms”)
      else:
      print(“Please input a valid response.”)

    • @TeamOdiffat
      @TeamOdiffat Месяц назад

      @@galahadlance
      weight = float(input("Weight? "))
      typ = (input("kg or lbs? "))
      if typ.upper() == "KG":
      print("Your Weight In lbs= ", (weight * 2.2))
      elif typ.upper() == "LBS":
      print("Your Weight in kg", weight / 2.2)
      else:
      print("Weight Unit Not LBS or KG")

    • @josepaniagua4435
      @josepaniagua4435 Месяц назад +1

      weight = float(input("Weight: "))
      convt = input("(K)g or (L)bs: ")
      wc = float(2.20)
      if convt == 'K' or convt == 'k':
      new_weight = weight/wc
      print("Weight in Kg: " + f"{new_weight:.2f}")
      elif convt == 'L' or convt == 'l':
      print("Weight in Lbs: " + f"{weight:.0f}")

  • @rahafal-hatab4993
    @rahafal-hatab4993 3 года назад +35

    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")

  • @pingupie7770
    @pingupie7770 Месяц назад

    36:20
    This took a bit longer than 5 minutes but im proud of it for having basically no prior coding experience
    unit = input("Enter 1 for kg or 2 for lbs ")
    weight = input("Enter weight in specified unit ")
    if int(unit) == 1:
    converted = (float(weight) * 2.205)
    string = converted.__round__(1)
    print("≈ "+str(string)+" lbs")
    elif int(unit) == 2:
    converted = (float(weight) / 2.205)
    string = converted.__round__(1)
    print("≈ "+str(string)+" kg")

  • @bigsteppa42
    @bigsteppa42 3 года назад +526

    10 minutes in and i already learned more than i did from my high school teacher

  • @Linuxfy
    @Linuxfy 4 года назад +1847

    I just print "Hello World" in the terminal. I'm waiting for an email from Google Software Engineer.

    • @realnice3672
      @realnice3672 4 года назад +7

      xd

    • @nevang6314
      @nevang6314 4 года назад +101

      you got no chance. i have an input for your age and then prints your age. sorry but im getting in google :)

    • @aryangirijan3008
      @aryangirijan3008 4 года назад +5

      Aww

    • @HarryMator
      @HarryMator 4 года назад +34

      *i remembered the brackets, you have no chance*

    • @aryangirijan3008
      @aryangirijan3008 4 года назад +8

      @@HarryMator sad I remember input function not brackets unlike u *no one stands against me now*

  • @Sopherian
    @Sopherian 2 года назад +269

    Exercice 8:50
    Name = ("John Smith")
    Age = 20
    Status = ("New patient")
    print (Name, Age, Status,)
    Exercice 14:50
    first = input("Number: ")
    second = input("Plus: ")
    sum = float(first) + float(second)
    print("Awnser: " + str(sum))
    Exercice 36:17
    weight = float(input("What is your weight? "))
    unit = input("(K)g or (L)bs: ")
    if unit.upper() == "K":
    converted = weight / 0.45
    print("Weight in Lbs: " + str(converted))
    else: converted = weight * 0.45
    print("Weight in Kgs:" + str(converted))

    • @rreynz5460
      @rreynz5460 2 года назад +4

      good job, although on the first exercise there is no need to put brackets around the quotation marks within the variable. First_name = "John" would work fine same with his surname but it works so well done

    • @rreynz5460
      @rreynz5460 2 года назад

      @@prajwalacharya4791 what is the error?

    • @rreynz5460
      @rreynz5460 2 года назад +3

      @@prajwalacharya4791 make sure in your previous cide you entered an upper case K so it referres to that "K"

    • @rreynz5460
      @rreynz5460 2 года назад +1

      @Rougue Ninja for some aspects but for variables there is no need for them

    • @Stone4show
      @Stone4show 2 года назад +1

      @@rreynz5460 Remove the .upper() from the code at the top of the unit part and the code will work as supposed.

  • @Stormykaktus
    @Stormykaktus 11 дней назад

    36:10
    weight = float(input("Weight: "))
    unit= input("(K)g or (L)bs: ")
    if unit.upper() =="K":
    conv=weight / 0.45
    print (conv)
    if unit.upper() =="L":
    conv=weight *0.45
    print (conv)

  • @ksatyasirisha2013
    @ksatyasirisha2013 3 года назад +12

    17:20 - 17:47 you don't need to change the float into a string. just change the "+" into a ","
    y = float(input('enter your first num: '))
    x = float(input('enter your second num: '))
    print('the sum is: ', x + y)
    try this, this works too.

  • @behindthebros3248
    @behindthebros3248 2 года назад +34

    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.

  • @Akhan4u
    @Akhan4u 3 года назад +59

    Excellent Course. No distraction, No crap. Just explained with so much ease and comfort. Makes so much sense for every minute of the hour!!!

  • @Maplewood_Writer
    @Maplewood_Writer Месяц назад

    simple calculator
    first = input("what is your first number? ")
    second = input("what is your second number? ")
    action = input("add subtract divide or multiply? ")
    if action == "add":
    Sum = int(first) + int(second)
    print("the sum of these two numbers is " + str(Sum))
    if action == "subtract":
    Difference = int(first) - int(second)
    print("the difference of these two numbers is " + str(Difference))
    if action == "divide":
    Quotient = int(first) / int(second)
    print("the quotient of these two numbers is " + str(Quotient))
    if action == "multiply":
    Product = int(first) * int(second)
    print("the product of these two numbers is " + str(Product))

  • @jeffrey6296
    @jeffrey6296 Год назад +317

    9:06
    name = ‘John Smith’
    age = 20
    patient_status = ‘new’
    print(name, age, patient_status)
    15:00
    num1 = input(‘First’)
    num2 = input(‘Second’)
    sum = int(num1) + int(num2)
    print(sum)

    • @unununium8481
      @unununium8481 Год назад +11

      I did the exact same thing for the first exercise.

    • @hitoriotaku1069
      @hitoriotaku1069 Год назад +12

      i did the same thing for the second exercise but with sum = float instead of int

    • @ZARearth
      @ZARearth Год назад +12

      name = "Patient's name: " + "John Smith"
      age = "Age: " + str(20)
      status = "Patient's status: " + "new"
      print(name)
      print(age)
      print(status)

    • @MrDeshawn124
      @MrDeshawn124 Год назад +8

      I was wayyy off... had too many extra variables... glad I cheated and took a look here

    • @jeffrey6296
      @jeffrey6296 Год назад +1

      @@MrDeshawn124 Glad that that I helped you :3

  • @morhogeg
    @morhogeg 4 года назад +615

    Mosh is the best programming teacher on RUclips!❤

    • @hardeepkanaujia
      @hardeepkanaujia 4 года назад +16

      @@programmingwithmosh yes sir, you are my guru

    • @lokrajkoundal4175
      @lokrajkoundal4175 4 года назад +6

      @@programmingwithmosh sir , I was waiting for this only thanks but I saw the previous too. 2020 pythan

    • @sulemantasawar3265
      @sulemantasawar3265 4 года назад +2

      I also agree with you

    • @neilyang2957
      @neilyang2957 4 года назад +4

      Me think Mosh is the best programmer teacher 👨‍🏫 too

    • @narendirank7501
      @narendirank7501 4 года назад +11

      @@neilyang2957 Absolutely. Mosh is the best. I am just 11 but now I know HTML,CSS, JavaScript,python because of Mosh😀

  • @Xiams
    @Xiams 2 года назад +147

    This was really fantastic. I have no prior Python experience and was able to keep up and even experiment a little during the exercises. Thank you so much!!
    8:50
    last_name = "Smith"
    first_name = "John"
    age = 20
    patient_status = "New Patient"
    print(last_name,", ",first_name,". Age: ",age,". ", patient_status)
    15:03
    first = input(" Let's add 2 numbers. First: ")
    second = input("Second: ")
    sum = float(first)+float(second)
    print("Together those equal",sum)
    36:22
    weight = float(input("Let's convert your weight. How much do you weigh? "))
    mass = input("Is that in (K)g or (L)bs? ")
    if mass.upper() == "K":
    print("In Pounds, you weigh: ", weight * 2.21)
    elif mass.upper() == "L":
    print("In Kilograms, you weigh: ", weight * 0.45)
    else:
    print("U r confused.")
    print("Have a nice day!")
    Blooper at 1:00:01

    • @miguelreyntjens9723
      @miguelreyntjens9723 2 года назад +4

      Thank you for telling me about the blooper, totally missed it!

    • @abiodunaghedo550
      @abiodunaghedo550 2 года назад

      What goood answers they are all corect you are smart to know the answers to this code. Did you copy from the video. I think you did
      Daniel Delgado: Yes I copied I just wanted to see the answers
      Me: LOL! 🤣

    • @abiodunaghedo550
      @abiodunaghedo550 2 года назад

      @@miguelreyntjens9723 What is the blooper?

    • @Dafakizdat
      @Dafakizdat 2 года назад +3

      @@abiodunaghedo550 you alright?

    • @m.mccormick
      @m.mccormick 2 года назад

      @@Dafakizdat i was wondering the same thing

  • @shaheershery
    @shaheershery 2 месяца назад

    36:20
    Weight converter
    Weight = input("Whats your weight? ")
    Type = input("Is it in (K)gs or (L)bs ").lower()
    if Type.upper() == "K" or "k":
    Weight = float(Weight) * 2.204
    elif Type.upper() == "L" or "l":
    Weight = float(Weight) / 2.204
    print(Weight)

  • @johnm.6414
    @johnm.6414 6 месяцев назад +63

    I've been a cook for 18 years and I'm ready for something new and better. Can't wait to fully learn this!

    • @SheilaDang-ik1hc
      @SheilaDang-ik1hc 4 месяца назад +5

      how’s it going so far?

    • @LinguisticG4m3rBoi_qy1yn
      @LinguisticG4m3rBoi_qy1yn 4 месяца назад +2

      Yes! You can do this! I believe in you and I hope you good luck for your future endeavours! :)

    • @MarcoHernandez-nb5dc
      @MarcoHernandez-nb5dc 4 месяца назад +2

      U were born to cook bro 😢, coding is boring

    • @LinguisticG4m3rBoi_qy1yn
      @LinguisticG4m3rBoi_qy1yn 4 месяца назад +1

      @@MarcoHernandez-nb5dc Its fine! People have their different opinions and thats what makes us special! So if they want to be a coder who says they can't! If coding is boring for you maybe try something new!

    • @Dave.Mustaine.Is.Genius
      @Dave.Mustaine.Is.Genius 4 месяца назад

      ​@@LinguisticG4m3rBoi_qy1ynwhat are ye gonna do by learning coding if ye are not an engineer? What's it gonna teach ye about human, nature, existence and God? Almost nothing, I guess. (Btw I love Azula, I bang her everynight)

  • @LuisVasquez-mq8nc
    @LuisVasquez-mq8nc Месяц назад

    Amazing tutorial here's my code for 36:58
    weight = input("what is your weight? ")
    KgP = input('in Kg(K) or in pounds(p) ')
    if KgP == 'p' or KgP == 'P':
    weight = float(weight) * 0.453592
    print('Weight in Kg is ' + str(int(weight)))
    elif KgP == 'k' or KgP == 'K':
    weight = float(weight) * 2.20462
    print('Weight in pounds is ' + str(int(weight)))
    else:
    print("please try again and use K or p")

  • @MetalMageArt
    @MetalMageArt 2 года назад +476

    My tiny brain can't comprehend how you crammed so much information into such a short timespan and still made it easily understandable. Thank you so much for this tutorial and I hope this will be the start of a coding passion for me.

    • @manoranjanbiruli2789
      @manoranjanbiruli2789 2 года назад

      But ur a chicken

    • @toastbadoinks7448
      @toastbadoinks7448 2 года назад

      I'd recommend this video. Its fire🔥ruclips.net/video/bd4ENYV5HWY/видео.html

    • @abiodunaghedo550
      @abiodunaghedo550 2 года назад +5

      It is not necessary to learn so much in your day that your brain feels like it has too much information stored inside it and it is going to explode😵‍💫😬🤢. Like numbers are infinitive you should stop at the numbers your brain can take😌.

    • @cgx7089
      @cgx7089 2 года назад +3

      teachers would make it so complicated

    • @RobertSpiller
      @RobertSpiller 2 года назад +2

      Take it in bite size chunks...Learn mind mapping to help you learn and remember ideas and concepts. Take your time, and just affirm constantly that you can and will do this.

  • @moonhqz
    @moonhqz День назад

    I'm learning coding because I'm a Freshman in high school who aspires to become a Software Engineer one day.
    Everything I've learrned so far:
    Excercise 1:
    x = "Hospital Data"
    y = "-------------------------------"
    Patient_name = "John Smith"
    Age = 20
    Regular_patient = False
    print(x)
    print(y)
    print(Patient_name)
    print(Age)
    print(Regular_patient)

  • @kencharles31
    @kencharles31 2 года назад +332

    I cant believe i spent up to 2 hours watching and practicing with this tutorial, and i enjoyed it. I love the exercise section, its inspiring. Thanks for taking your time to give this tutorial.

    • @edbergstrom6346
      @edbergstrom6346 2 года назад

      Horrible video - outdated and if you really followed this video - then you can't make it past the first 7 minutes - Garbage for those of us that really wanted to learn something.

    • @mrcodfish-hc-
      @mrcodfish-hc- 2 года назад +6

      No thats not true!!! Why do you say that to a person that take his time to teach other persons how to learn Python?

    • @myko3279
      @myko3279 2 года назад +6

      @@edbergstrom6346 why do u say that, 5yo kid?

    • @mfnafanimations
      @mfnafanimations 2 года назад +3

      @@edbergstrom6346 what no its a really good tutorial actually

    • @thanosnoctem4473
      @thanosnoctem4473 2 года назад +13

      @@edbergstrom6346 I watched this video for an hour and it makes much more sense than your existence ever did

  • @nerokyi
    @nerokyi 7 месяцев назад +57

    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))

    • @hiraeth7316
      @hiraeth7316 4 месяца назад +5

      Thank you. I was confused on how to do it and your comment helped me

    • @imtheguywhoasked
      @imtheguywhoasked 4 месяца назад

      You're a g.

  • @LordofG
    @LordofG 3 года назад +103

    I graduated with my bachelor's a few months ago and I'm going to apply for a masters in data analytics and I'm brushing up on my Python and this is amazing. Thank you so much for the amazing tutorial!

    • @fred4638
      @fred4638 3 года назад

      How long does a bachelor take?

    • @LordofG
      @LordofG 3 года назад +2

      @@fred4638 about 4 years. My master's will take 1 year.

    • @minugupta188
      @minugupta188 3 года назад

      @@LordofG Mnkj

    • @minugupta188
      @minugupta188 3 года назад

      @@LordofG JMM

    • @minugupta188
      @minugupta188 3 года назад

      @@fred4638 Ppjjjmo to i pool oo oouo
      O I'm
      l.p LLC l oo oo is
      Miy
      Pn I'll j
      Mmiimulu.
      P

  • @boredgamesph4872
    @boredgamesph4872 Месяц назад

    37:00
    weight = float(input("Weight: "))
    w_type = str.lower(input("(K)g or (L)bs: "))
    if w_type == "l":
    k_weight = round(weight * 0.45359237,2)
    print(f"Weight in Kg is {k_weight}")
    elif w_type == "k":
    l_weight = round(weight * 2.20462262,2)
    print(f"Weight in lbs is {l_weight}")
    else:
    print("Please input weight type properly")

  • @christopheraledo5420
    @christopheraledo5420 3 года назад +15

    for the exercise at 37:00
    weight = float(input("Weight: "))
    unit = input("(K)g or (L)bs ").upper()
    userWeightK = float(weight * 2.2)
    userWeightL = float(weight / 2.2)
    if unit == 'K':
    print("Weight in Lbs: " + str(userWeightK))
    elif unit == 'L':
    print("Weight in Kg: " + str(userWeightL))

    • @damianaustin1152
      @damianaustin1152 3 года назад +6

      I'm struggling so hard with this i dont know why :/

    • @stormsly
      @stormsly 3 года назад +1

      I did something a little different, I have previous knowledge with Lua so some of the things I do are habit and trying to make beautiful code. I do like your use of the .upper() function directly on the unit input! Good job!
      weight = float(input("Weight: "))
      unit = input("(K)g or (L)bs: ")
      if unit.lower() == "k":
      print("Weight in Lbs: " + str(weight // 0.45))
      elif unit.lower() == "l":
      print("Weight in Kgs: " + str(weight * 0.45))

    • @kaulsay64
      @kaulsay64 3 года назад

      U should do if weight== "K" or "k": print(). This will account for the possibility if the user enters k or K

  • @vinling2767
    @vinling2767 2 года назад +28

    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.

  • @Mr.G101
    @Mr.G101 2 года назад +31

    Hi. I am genuinely interested in learning Python and your videos are amazing.
    exercise numero 1:
    name = ("john Smith")
    age = 20
    status = ("new patient")
    print(name)
    print(age)
    print(status)

    • @sh3ldox260
      @sh3ldox260 2 года назад +3

      or you could write print (name, age, status) but it works

    • @justaaccountforcommenting1650
      @justaaccountforcommenting1650 2 года назад +1

      @@sh3ldox260 but it would type all of it in the same line if u don't care about that then u can type it the way u said it

    • @IsaacOhiku-ix9tm
      @IsaacOhiku-ix9tm 2 месяца назад

      ​@@sh3ldox260 ohh I'll try this honestly didn't know 😅

    • @IsaacOhiku-ix9tm
      @IsaacOhiku-ix9tm 2 месяца назад

      Thanks
      I couldn't write the code😅

  • @That_Gamer716
    @That_Gamer716 15 дней назад +1

    as of writing this comment, I'm a yr7 trying to get into coding as it is my dream job to be a game developer. Today i asked my teacher what language I will need for my GCSEs and she told me python. That was the moment i finally got the courage and motivation to get my ass off games and do something useful. This video is helping my motivation immensely and I'm so glad to have seen this!

  • @StonagePwnage
    @StonagePwnage 3 года назад +340

    I have always been interested in coding but never have actually tried it, I'm 13 minutes into this video and I am practicing/learning for the first time & I am already learning and having fun, thank you so much man!

    • @Baker4life777
      @Baker4life777 3 года назад +7

      on the same journey friend. hope to see you at the top!

    • @conniebarrick8265
      @conniebarrick8265 3 года назад +10

      I'm writing this in Aug. 2021, already decided to go into computer programming just this year. Python is just one of my goals and Notepad++. I also decided to come out of retirement to enter this great future of ahead for all of us. Addition, to live a better and with more money type of life, why not say that!

    • @forthehomies7043
      @forthehomies7043 3 года назад +4

      @@conniebarrick8265 hi connie welcome to the journey:) best of luck to you - one day we'll be using apps that we've coded ourselves, see you down the road.

    • @conniebarrick8265
      @conniebarrick8265 3 года назад +1

      @@forthehomies7043 Yes, I will see you

    • @conniebarrick8265
      @conniebarrick8265 3 года назад +1

      You see, it doesn't take much to improve 's oneself. Just, keep going, this is a big and profitable field (computer programs) to achieve in. Your limit is the sky!

  • @chaditv2493
    @chaditv2493 3 года назад +36

    15:08
    print("Enter your numbers below")
    first_num= input("First: ")
    second_num = input("Second: ")
    sum = float(first_num) + float(second_num)
    print(f"Sum: {sum}")

    • @saritamahato6940
      @saritamahato6940 3 года назад +1

      Good job

    • @DivinityinLove
      @DivinityinLove 2 года назад

      Forgot about float, thanks! but I just did:
      first = input("Enter first number: ")
      second = input("Enter second number: ")
      sum = float(first) + float(second)
      print(sum)
      totally forgot what print(f'Sum: {sum}') even does :/ I need to revise. But the code I used seemed to work fine with floats.

  • @janicelim1039
    @janicelim1039 2 года назад +124

    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!!

  • @raggadubdubgaming
    @raggadubdubgaming 3 часа назад

    Exercise 3:
    weight = input("Weight: ")
    unit = input("(K)g or (L)bs: ").lower() # Convert imput to lowercase
    if unit == "k":
    print("Your weight in LBS is: ", float (weight) *2.205)
    elif unit == "l":
    print("Your weight in KG is: ", float (weight) *0.454)

  • @salvadorantunes4062
    @salvadorantunes4062 4 месяца назад +12

    36:20
    print("Welcome to the Weight Converter")
    weight = input("Weight: ")
    massa = input("(K)g or (L)bs: ")
    if massa.upper() == "K":
    print(float(weight) * 2.2)
    elif massa.upper() == "L":
    print(float(weight) * 0.5)
    else: print("You must type 'K' for kilograms or 'L' for pounds")

    • @konstantinkiriyenko5816
      @konstantinkiriyenko5816 3 месяца назад

      The part with the unit converter, it gives wrong calculations because of those weird numbers. For example If you type in 165 pounds, what's supposed to be around 75 kg, it will give me number 82.5 . I'd use standard formula multiplying or dividing it by 2,205.

    • @konstantinkiriyenko5816
      @konstantinkiriyenko5816 3 месяца назад +2

      but yeah who cares about lbs xd

  • @Itsme-fv7ey
    @Itsme-fv7ey 4 года назад +12

    emp = 35
    if temp > 30:
    print ("its a hot day")
    elif temp > 20: # (20,30]
    print ("its a good day")
    elif temp > 10: #(10,20]
    print("its cold ")
    print("wear warm cloth")
    else :
    print ("stay home")

    • @mikethegamedev
      @mikethegamedev 4 года назад

      YEA!!!

    • @isaacvaz9819
      @isaacvaz9819 4 года назад +1

      if you want to make it more interesting, you can make the code so that you chose the temperature while runing the program, here's the code
      temp = int(input('enter temperature: '))
      if temp > 30:
      print ("its a hot day")
      elif temp > 20: # (20,30]
      print ("its a good day")
      elif temp > 10: #(10,20]
      print("its cold ")
      print("wear warm cloth")
      else :
      print ("stay home")

    • @savingfoam7979
      @savingfoam7979 4 года назад +1

      @@isaacvaz9819 Don't forget to add try and except.

    • @isaacvaz9819
      @isaacvaz9819 4 года назад +1

      @@savingfoam7979 yes your right thank u

    • @AerotaleYT
      @AerotaleYT 4 года назад +1

      covid = True
      If covid == True:
      print("Stay at home!")

  • @TainoGen
    @TainoGen 7 месяцев назад +95

    I want to learn cuz i want to create a program for my children. Ive had a brain injury during a deployment an i find it very difficult to express my thoughts. An i feel if i can create a virtual environment where i can express and leave some learning experiences they might understand me a bit better 😊

    • @RainSage
      @RainSage 5 месяцев назад +2

      I hope you get to where you want in it I’m taking my last class with the python programming in it and I get my associates then going to free code camp to get my certificates in Java , Java script and web development for a better job , before pursuing my bachelors

    • @noonenoone5748
      @noonenoone5748 4 месяца назад

      Meanwhile AI can code faster than any human alive.
      AI needs no sleep. Works 24/7. Works for free.
      Human obsolete 😪

    • @RainSage
      @RainSage 4 месяца назад

      @@noonenoone5748 yea but it doesn’t complete a lot of different codes like arrays sometimes it messes up so still that’s run people are still getting jobs in that field

  • @themidnightmoon1740
    @themidnightmoon1740 Месяц назад

    weight=int(input('enter a number'))
    unit=input('kg or lbs:')
    if unit=='KG' or 'kg' :
    converted=weight/0.45
    print('weight in lbs:', converted )
    elif unit=='LBS' or 'lbs' :
    converted=weight*0.45
    print('weight in kg:', converted)
    else:
    print ('WhAt??') 36:53

  • @Pointwood99
    @Pointwood99 10 месяцев назад +88

    You're awesome Mosh! Thank you.
    Exercise 1:
    name = "John Smith"
    print("Name:", name)
    age = 20
    print("Age:", age, "Years old")
    newcomer = True
    print("Newcomer?", newcomer)
    Exercise 2:
    first = input("First: ")
    second = input("Second: ")
    sum = float(first) + float(second)
    print(sum)
    Exercise 3:
    #Input
    weight = input("Weight: ")
    #K or L
    KL = input("(K)g or (L)bs: ")
    #if K
    if KL.upper() == "K":
    Kg = float(weight) / 0.45
    print(Kg, "Lbs")
    elif KL.upper() == "L":
    Lbs = float(weight) * 0.45
    print(Lbs, "Kg")

    • @joshua-7638
      @joshua-7638 8 месяцев назад

      Hey I know I'm a bit late but for exercise 2 on Ur 3rd line of code, u wrote float(first). When I did this exercise I wrote int(first) by any chance can u explain what the difference would be because my code ended up working but we got different solutions, cheers 👍🏼

    • @joshua-7638
      @joshua-7638 8 месяцев назад

      nvm mind just watched like 1 more minuet of the video and the bloke wrote int aswell, interesting how Ur solution work aswell

    • @vegemitetoast5201
      @vegemitetoast5201 8 месяцев назад +3

      @@joshua-7638 just to answer your question anyway, a float is a number that includes decimals e.g 2.2123, an int is any whole number e.g 2,3, or 4.

    • @vivasvan1818
      @vivasvan1818 8 месяцев назад

      um u said that instead of float it should be integer instead of integer he wrote float that will good because if the user writes something like this First:1
      Second:2.4
      it show error if he writes int() @@joshua-7638

  • @sacthus
    @sacthus 3 года назад +744

    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.

    • @peanutandginger5358
      @peanutandginger5358 3 года назад +13

      looooool!! Genius!

    • @Tiger_Labs_Code
      @Tiger_Labs_Code 3 года назад +24

      I made a Calculator that can add, subtract, multiply and divide=)

    • @juinaik8038
      @juinaik8038 3 года назад +2

      Lol

    • @rishithab6051
      @rishithab6051 3 года назад +6

      @@Tiger_Labs_Code great by seeing this video did u made it

    • @aardbeiwastaken
      @aardbeiwastaken 3 года назад +9

      @@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.

  • @giovannisita9342
    @giovannisita9342 3 года назад +33

    This is probably the best Python Beginner Course I've come across.

    • @thereadinguy684
      @thereadinguy684 3 года назад

      Me too I learn from whit hat junior but they don't teach any scripting but this is the video that can help me a lot learn about python

    • @themuffincat
      @themuffincat 3 года назад

      @@thereadinguy684 whitehat is a scam

  • @miss_mia1
    @miss_mia1 14 дней назад

    36:27
    Weight = float(input(“Weight: “))
    Unit = input (“(K)g or (L)bs: “)
    if Unit == “L” or Unit == “l”
    print (“Weight in kg is: “ , Weight/2.2205)
    elif Unit == “K” or Unit == “k”:
    print(“Weight in lbs is: “, Weight * 2.205)

  • @kennedyl7744
    @kennedyl7744 2 года назад +72

    I'm 32 and currently employed as a welder but I'm tired of dangerous conditions, long hours and low pay. I'm considering going to school but your videos have been the most helpful resource Ive found.

    • @benjyn2682
      @benjyn2682 2 года назад +3

      i am 32 too in 2046

    • @kennedyl7744
      @kennedyl7744 2 года назад +6

      @@benjyn2682 damn bro that's cray

    • @zitimotleyxxjmxx
      @zitimotleyxxjmxx Год назад +2

      I am 37 and I too am tired of having a low paying job. I am learning this and will also go through his 4 hour tutorial. We can do this man!!

    • @ibraheemmonks8866
      @ibraheemmonks8866 Год назад +2

      Hey man I've been in your situation in the past where you dislike your job and are looking for new ways to make money/a new career. The mistake I made was feeling overwhelmed by all the possible routes you can take and as a result not being as dedicated to 1 route because I always think there are alternatives if this one doesn't work out. This is the worst way to do it as you will always hit obstacles no matter which path you take. Experiment a bit and do your research but once you find something you enjoy or can see yourself enjoying go all out with it no matter how hard it gets. Stay dedicated and consistent and it will work out in the long term. Remember its patience and consistency. Do a bit everyday and let your progress keep you motivated. Good luck my friend.

  • @JellyFicheable
    @JellyFicheable Год назад +57

    Haven't used python since I graduated 2 years ago. Needed this as a refresher, and I feel like I understand it considerably better now than I did in 4 years of college. Thanks for the help!

    • @JemimaNta
      @JemimaNta Год назад +1

      Is college systems over there that bad? My lecturers explain topics irl better than RUclips sef

    • @ivan199120
      @ivan199120 Год назад

      What degree did you pursue?

    • @JemimaNta
      @JemimaNta Год назад

      @@ivan199120 I am doing electrical electronic engineering

    • @paranjay3206
      @paranjay3206 11 месяцев назад +1

      My school is teaching me In 9th grade that's why I am here 😢😢

    • @kingdavis890
      @kingdavis890 10 месяцев назад

      @@paranjay3206that’s a blessing trust me

  • @rowanoaks4576
    @rowanoaks4576 Год назад +129

    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.

  • @nichtLuiz
    @nichtLuiz Месяц назад

    weight = input("Weight: ")
    index = input("(k)g or (l)bs? ")
    if index.lower() == "k":
    a = int(weight) * 2.2
    print(str(a) + " in lbs")
    else:
    b = int(weight) / 2.2
    print(str(b) + " in kg")

  • @NandakishoreChandaka
    @NandakishoreChandaka Год назад +23

    hey, mosh!
    2nd exercise:
    First = input("Enter the first number: ")
    Second = input("Enter the second number: ")
    Addition = float(First) + float(Second)
    print(Addition)
    O/P:
    Enter the first number: 10.1
    Enter the second number: 22
    32.1

    • @paranjay3206
      @paranjay3206 11 месяцев назад

      Thanks bro helped me out 😊

    • @tapatuti9047
      @tapatuti9047 10 месяцев назад

      thanks!, was wondering why i was getting 55 from 1st number = 5 + 2nd number = 5

  • @scythe_ghoul
    @scythe_ghoul 4 года назад +44

    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
    For those who need

    • @AreosOriginal
      @AreosOriginal 4 года назад +6

      or check the description

    • @scythe_ghoul
      @scythe_ghoul 4 года назад

      Ya but those who dont for them dude

    • @Andrew-ps9bu
      @Andrew-ps9bu 4 года назад

      he did this already but i like the effort

    • @timtalksanimations9171
      @timtalksanimations9171 4 года назад +1

      @@Andrew-ps9bu Guy literally copy pasted the desc, there's no effort here.

    • @meenakshisingh2158
      @meenakshisingh2158 4 года назад

      ruclips.net/video/1VIJflxzozM/видео.html

  • @mr.roboleader9128
    @mr.roboleader9128 3 года назад +29

    I am learning python because I'm an absolutely lazy leader, I absolutely hate doing repetitive tasks more than just once. Thank you so much for this walkthrough!

    • @moodyquixy7308
      @moodyquixy7308 3 года назад +2

      well u hate repetative shit? and ur coding
      ooof

  • @FXNKG
    @FXNKG Месяц назад +1

    first_num = input('enter your first number')
    second_num = input('enter your second number')
    sum = float(first_num) + float(second_num)
    print(f'The sum of your numbers is {sum}')

  • @sethsilber6889
    @sethsilber6889 3 года назад +827

    I'm learning so I can teach my sister so she can pass her class.

  • @ZAH33D
    @ZAH33D 2 года назад +71

    Gonna keep adding things here.
    9:00
    first_name = "John"
    last_name = "Smith"
    patient_age = 20
    patient_admission = "New patient"
    print (first_name, last_name)
    print (patient_age)
    print (patient_admission)
    Result-
    John Smith
    20
    New patient
    10:45
    name = input ("What's your name? ")
    print (name +" mama")
    Result-
    What's your name? Joe
    Joe mama
    15:05
    first = input ("First: ")
    second = input("Second: ")
    Sum = int(first) + int(second)
    print("Sum: " + str(Sum))
    Result- worked at 7th try.
    33:40
    Gave me a pretty good idea.
    temperature = float(input("What's the temperature today? "))
    if temperature > 30:
    print("It sure is a hot day.")
    print("Drink plenty of water")
    Result- took a couple of tries, works awesome

    • @CodeNameCheese_
      @CodeNameCheese_ 2 года назад +1

      Thanks man this actually helped me correct some of my mistakes

    • @bts1073
      @bts1073 2 года назад

      do u know how to write a code if we have to print the no.of uploads in a certain app within a certain month?

    • @manumedleri1355
      @manumedleri1355 2 года назад

      Tq man 👍

    • @saidit0nc366
      @saidit0nc366 2 года назад +1

      mashallah, thank you ahki, started learning about three weeks ago and this help a lot.

  • @YouTubeFromMexico
    @YouTubeFromMexico Год назад +133

    You are a legend. I've been wanting to Python my whole life but since I'm not an adult yet, I though I would need to be some professional grown person to do that but with this tutorial, I've gotten father than I thought I would, thank you Mosh.

    • @noteman316
      @noteman316 Год назад +1

      Same here man, i cant wait to start making things in python!

    • @haifaalqahtani6400
      @haifaalqahtani6400 Год назад

      One day

    • @benjaminjohnpabroquez8012
      @benjaminjohnpabroquez8012 Год назад

      Check out mine as well

    • @KahinAhmed72
      @KahinAhmed72 Год назад +1

      The fact that you want to learn Python at a young age is awesome.
      Keep at it and have fun with the process!

    • @Marcus_Sherman
      @Marcus_Sherman Год назад

      “A professional grown person” same man, same😂

  • @businessprodigy_
    @businessprodigy_ 2 месяца назад

    I'm 15 years old and french. Your tutorial helped me learning a lot about Python and english ! Thank you very much

  • @gonzaloalbert3538
    @gonzaloalbert3538 Год назад +29

    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

  • @jocelynmin
    @jocelynmin 3 года назад +14

    Thank you for this very informative video. Here is my progress so far...
    Exercise One
    age = 20
    Status = ("New Patient")
    first_name = "Smith, Josh"
    is_online = False
    print(age)
    print(Status)
    print(first_name)

    • @SlenderBetty
      @SlenderBetty 3 года назад +4

      What’s the point of putting that “is_online=False Boolean factor in that though?

    • @omosumoru2653
      @omosumoru2653 2 года назад

      @@SlenderBetty I think it was an error or she was just typing something else he mentioned

    • @dwaynefoxx7238
      @dwaynefoxx7238 2 года назад

      first_name = "John"
      last_name = "Smith"
      age = "20 "
      patient_status = "New Patient"
      print(first_name)
      print(last_name)
      print(age)
      print(patient_status)

  • @Scattahh
    @Scattahh 2 года назад +17

    I 100 percent agree with most of the comments on here. This was waaay more easier to understand than other tutors out there. Simple and clear explanations with the right examples also. Thank you Mosh.

    • @edbergstrom6346
      @edbergstrom6346 2 года назад

      Horrible video - outdated and if you really followed this video - then you can't make it past the first 7 minutes - Garbage for those of us that really wanted to learn something.

    • @luvvreni
      @luvvreni 2 года назад +1

      @@edbergstrom6346 sounds like a personal problem