How to Use If Else Statements in Python (Python Tutorial #2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2024
  • This entire series in a playlist: goo.gl/eVauVX
    Keep in touch on Facebook: / entercsdojo
    Subscribe to my newsletter: www.csdojo.io/news
    Support me on Patreon: / csdojo
    Tips:
    1. Follow along as I explain to make sure you understand everything
    2. Ideally, work with a friend so you can help each other when you’re stuck
    3. If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
    4. Check the outline in the comment section below if you want to skip around.
    5. Download the sample files here to follow along (they are Jupyter Notebook files): www.csdojo.io/python2
    6. To make sure you don’t miss my future tutorial videos, sign up to my newsletter: www.csdojo.io/news
    7. Have fun! If anything is unclear, please let me know in a comment.
    Keep in touch on Facebook: / entercsdojo
    Subscribe to my newsletter: www.csdojo.io/news
    Support me on Patreon: / csdojo

ความคิดเห็น • 2.6K

  • @CSDojo
    @CSDojo  6 ปีที่แล้ว +620

    Below is an outline of this video.
    Also, a few tips:
    1. Here is the playlist for this series: th-cam.com/video/Z1Yd7upQsXY/w-d-xo.html
    2. Follow along as I explain to make sure you understand everything
    3. Ideally, work with a friend so you can help each other when you’re stuck
    4. If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
    5. Check the outline in the comment section below if you want to skip around.
    6. Download the sample files here to follow along (they are Jupyter Notebook files): www.csdojo.io/python2
    7. To make sure you don’t miss my future tutorial videos, sign up to my newsletter: www.csdojo.io/news
    8. Have fun! If anything is unclear, please let me know in a comment.
    0:06: The outline
    1:00: I already started learning another language. What should I do?
    1:51: Creating a new Jupyter Notebook file
    2:26: Executing a cell in Jupyter
    2:57: Deleting and adding cells in Jupyter
    4:47: How Jupyter’s kernals work
    6:18: If statements
    9:28: If-else statements
    11:32: If-elif-else statements
    15:00: If-else within if-else
    17:12: Creating a BMI calculator

    • @aryanshukla2170
      @aryanshukla2170 6 ปีที่แล้ว +10

      CS Dojo thank you so much I was wondering since a couple of weeks searching for correct use of elif .. but no one explained it like you.. I never thought you would reply.. but you did. thank you so much

    • @vrushabhdhond
      @vrushabhdhond 6 ปีที่แล้ว +8

      Make machine learning video series 👍☺️

    • @ashugarg3196
      @ashugarg3196 6 ปีที่แล้ว +8

      love from India 🙏🙏🙏

    • @Alex-xc3ki
      @Alex-xc3ki 6 ปีที่แล้ว +2

      CS Dojo more please.

    • @decinos
      @decinos 6 ปีที่แล้ว +1

      Keep up nice work.
      Everytime you changed a line, Jupyter changes the line's number. So does it mean that the changed line was still in there? Can I edit a line?

  • @anushkaroy6666
    @anushkaroy6666 6 ปีที่แล้ว +2331

    This is honestly 1000x better than my school teacher lol

    • @MeowIsKindaFunny
      @MeowIsKindaFunny 5 ปีที่แล้ว +14

      totally

    • @shafwa234
      @shafwa234 5 ปีที่แล้ว +48

      He wasn't he was just saying that he is a better teacher

    • @OsadeTOOT
      @OsadeTOOT 5 ปีที่แล้ว +29

      @@shafwa234 that's today's true, you can't even say the facts because people will think you are insulting

    • @kiro253
      @kiro253 5 ปีที่แล้ว +5

      @Gamez and more 924 wow ur ok kid?

    • @voyager7971
      @voyager7971 5 ปีที่แล้ว +3

      For Real my compsci teacher is trash, I dont learn the way she teaches

  • @Fan-fi7jb
    @Fan-fi7jb 2 ปีที่แล้ว +146

    Can we just take a moment to appreciate how this guy is making python so interesting and simple?

  • @lennoxlewis9513
    @lennoxlewis9513 4 ปีที่แล้ว +251

    I would have probably paid attention in class if my school teacher was like him. Also this guy looks like a person who would make a perfect friend.

    • @filippians413
      @filippians413 3 ปีที่แล้ว +3

      Awe thats nice

    • @AnonymousXvictoriouS
      @AnonymousXvictoriouS 3 ปีที่แล้ว +1

      no you wouldn't...
      kids like to go crazy in class that would get him pissed
      Just being honest.....

  • @samaboasba6608
    @samaboasba6608 5 หลายเดือนก่อน +3

    I was recommended your videos by my 17 year old daughter. She said, she was struggling in class and the teacher was not that good (London based school). Your videos specially and a couple of others helped he pass her GCSEs computer science at grade 8 (A) without the need to pay for tuition and far better quality. To be recommended by kids you are a true teacher

  • @tariq0513
    @tariq0513 5 ปีที่แล้ว +903

    a = good teacher
    b = better than subscription based tutorials
    if a == b:
    print("agree")
    else:
    print("false")
    agree

    • @ashrafulhaider6426
      @ashrafulhaider6426 5 ปีที่แล้ว +23

      Intellectual one

    • @xrafter
      @xrafter 4 ปีที่แล้ว +52

      You forget the""

    • @rickydawn6313
      @rickydawn6313 4 ปีที่แล้ว +33

      Not coded right. You would get syntax error(most likely), and you would get false printed if you did put the proper syntax because a doesn't = b. Fuckaduckaloolooo

    • @ahmadk9856
      @ahmadk9856 4 ปีที่แล้ว +7

      It will not work. But it did for me when i put a=("good") in braces don't know why

    • @thelifeofpaladin
      @thelifeofpaladin 4 ปีที่แล้ว +2

      agree

  • @erikappelquist3363
    @erikappelquist3363 6 ปีที่แล้ว +838

    This is the most trouble I´ve ever gone through just to be called fat.

  • @WellingtonMSB
    @WellingtonMSB 3 ปีที่แล้ว +32

    I am all in on CS dojo. Simple, thorough, easy to following and delivered in a natural tone.

  • @thatboyjwan5271
    @thatboyjwan5271 5 ปีที่แล้ว +145

    You're literally helping me build my future, Ii'm forever grateful!!

    • @maybecrazy6934
      @maybecrazy6934 4 ปีที่แล้ว +2

      @Md Ahsanul Islam i want to know too!!

    • @SWICHERLETSPLAY
      @SWICHERLETSPLAY 3 ปีที่แล้ว +2

      I want to know as well

    • @ahmadfaisal9568
      @ahmadfaisal9568 3 ปีที่แล้ว

      @@SWICHERLETSPLAY why u want to know u his daddy ?

    • @jason401.
      @jason401. 3 ปีที่แล้ว +1

      @@ahmadfaisal9568 Because he might be going somewhere with it

  • @ArnavYT
    @ArnavYT 6 ปีที่แล้ว +195

    Very Professional work, and the videos Clearly show the Effort you put into them.
    Very few channels like yours.. The subs here are going to increase exponentially

  • @vishnuvengadeswaran1363
    @vishnuvengadeswaran1363 5 ปีที่แล้ว +192

    These tutorials look like something I would actually pay for! You're really thoughtful to teach Python to the world. You're an inspiration!

    • @techspotlight1280
      @techspotlight1280 3 ปีที่แล้ว +1

      Hi

    • @Chironexe
      @Chironexe 3 ปีที่แล้ว +2

      You might want to spend your money in a wiser fashion lmao

  • @PatrickTicksbo
    @PatrickTicksbo 3 ปีที่แล้ว

    You're the best coding teacher I've had. Thanks for making our life easier using available applications interfaces like Jupyter Notebooks and not trying to show yourself smarter using extensive command lines for everything.

  • @toniCbenn56
    @toniCbenn56 2 ปีที่แล้ว +5

    Wow I was SO confused by if/else statements and in three minutes your examples broke it down in the simplest of terms. Thank you!!

  • @clayvalarezo8647
    @clayvalarezo8647 6 ปีที่แล้ว +498

    YK! I just started learning Python. It is so empowering! I have seen two of your videos thus far, and they are amazing! Thank you for your passion and dedication to making these videos available to the public. I was on your Patreon account just now, and learned that you are no longer accepting donations for your work. This made me sad and happy all at once. I am happy that you can support yourself without Patreon, but sad that I could not contribute to your vision of making Python accessible to the public. I will subscribe to your channel, and follow you on facebook if that is the best way for me to contribute to you and your vision. Thank you very much for these tutorials. They are valuable beyond words. print("Thank you YK")

    • @swallowedinthesea11
      @swallowedinthesea11 6 ปีที่แล้ว +10

      Nice!
      Stay safe during the Coronavirus!

    • @mikeprincivil7615
      @mikeprincivil7615 5 ปีที่แล้ว +8

      hey how far are you now? i am just starting and i don't have time to go to school for it. I will just buy book and follow videos

    • @bvipee6095
      @bvipee6095 4 ปีที่แล้ว +1

      me too

    • @bvipee6095
      @bvipee6095 4 ปีที่แล้ว +1

      as in I agree

    • @clintchrystie6727
      @clintchrystie6727 4 ปีที่แล้ว +2

      @@mikeprincivil7615 me too

  • @afshakhan4589
    @afshakhan4589 6 ปีที่แล้ว +13

    You're one of the finest tutors I've found on TH-cam.. 👍God bless you.

  • @rafiksalmi5951
    @rafiksalmi5951 4 ปีที่แล้ว +364

    tutorial 1 : 5 million
    tutorial 2 : 1million views i can see what it the main prob in our generation :c

    • @rafiksalmi5951
      @rafiksalmi5951 4 ปีที่แล้ว +5

      @Grammar police same for me i stoped in lesson #5 :'(

    • @lol-bg4wh
      @lol-bg4wh 4 ปีที่แล้ว

      Rafik Salmi y

    • @yaroslavklykov1957
      @yaroslavklykov1957 4 ปีที่แล้ว +31

      This is a practical issue, not a problem per se. Interest is actually satisfied with the very first lessons, then the person decides how necessary and applicable it for him specifically.

    • @Drakonus_
      @Drakonus_ 3 ปีที่แล้ว +6

      Not enough dedication.

    • @rafiksalmi5951
      @rafiksalmi5951 3 ปีที่แล้ว +3

      @@Drakonus_ i stoped to :( i got it why ppl stoped they all lazy like me :'(

  • @willblot6359
    @willblot6359 2 ปีที่แล้ว +2

    Bro your tutorials are the most informational and helpful BY FAR! I am a complete beginner trying to learn Python, and you made it infinitely better! Thank you so much!

  • @ervitah2143
    @ervitah2143 5 ปีที่แล้ว +3

    I'm a complete beginner and I find that your tutorials are super clear! Thank you for teaching on TH-cam :)

  • @oguzkaanyilmaz2387
    @oguzkaanyilmaz2387 5 ปีที่แล้ว +7

    That was so smooth and clear. I'm sticking with you man. You're great!

  • @a6beats221
    @a6beats221 2 ปีที่แล้ว +1

    I really appreciate the simplicity of your videos. I follow along with pycharm and as a total beginner I am learning a lot.

  • @kamalovbakhadir7510
    @kamalovbakhadir7510 ปีที่แล้ว +1

    One of best tutorials out there. Very much detailed. Many cases, now, makes sense to me. Thank you man!

  • @braddavids4095
    @braddavids4095 6 ปีที่แล้ว +47

    I just finished parts 1 and 2 of this python tutorial next up is part 3 I'm really enjoying it so far your tutorials are awesome, high quality, filled with great content and it's so easy to follow along; I learn so much! I also love that there's a little test or program that's made at the end of the tutorial, it gives me a chance to see what you've taught being put into use and I get to try it out for myself, I'm glad I found your channel, I'm definitely a subscriber!

  • @shihuipang98
    @shihuipang98 4 ปีที่แล้ว

    Hey YK, just wanna say that I'm so grateful that you're around. You're really giving. Thanks :))

  • @kasperderej7401
    @kasperderej7401 4 ปีที่แล้ว +1

    Man, you deserve an infinite amount of appreciation. You do a great job teaching; thank you!!!

  • @areolsen694
    @areolsen694 6 ปีที่แล้ว +6

    I have actually tried to learn code before but i didnt understand anything but with you its not that bad!
    Thank you so much!!!!

  • @aravindadeejayz3847
    @aravindadeejayz3847 5 ปีที่แล้ว +6

    YK appreciated you proved that coding is easier
    Keep continue.
    I'll stick with your channel thank you

  • @berylgreen1973
    @berylgreen1973 3 หลายเดือนก่อน +1

    Clearest videos on computer programming that I've ever watched. THANK YOU!

  • @gabymarquez9163
    @gabymarquez9163 4 ปีที่แล้ว +2

    Your videos are the best ! You make it really easy to understand. Excited to try your Intro to Data Visualization w/ Python course!

  • @sanguinj
    @sanguinj 5 ปีที่แล้ว +4

    YK, Your # 1 tutorial really attracted me after browsing tens of tutorials about Python. I am a Petroleum Engineer that graduated in 79. Now retired. Since the world of digitalization, Machine learning, etc attracts me a lot I have decided to learn Python. I hope I can use in my field in this new world of digitalization. In the 70 we all learned from college Fortran....So I am ready to keep learning from your great tutorials....Congratulations for sharing knowledge.regards jorge from Venezuela, living in Mexico

    • @graciec.9803
      @graciec.9803 4 ปีที่แล้ว

      Python and ArcGIS Pro are awesome to learn together! Makes you a rockstar in the petroleum world or really any industry based around maps

  • @nellyy2157
    @nellyy2157 4 ปีที่แล้ว +5

    Im lucky to find this guy for python tutorials... i can clearly understand him... tnx so much :)

  • @sushanthreddy8789
    @sushanthreddy8789 3 ปีที่แล้ว +2

    probably the best teacher I've seen in many programming tutorials

  • @DivinityDark
    @DivinityDark 2 ปีที่แล้ว

    Thank you so much for creating these videos as I just started uni and I have no clue how to use python but I can 100% confirm your presentation is 100 times better than sitting in a lecture for 2 hours.

  • @tusharedits9
    @tusharedits9 4 ปีที่แล้ว +4

    Hey YK,
    Thank you so much for these python tutorials. It is just so easy to understand all the concepts. You are such a great teacher, I wish you were in my school as my computer teacher. But, no problem. I hope that we will soon meet somewhere. Thank You again for your wonderful videos.

  • @AyushSharma-it1sz
    @AyushSharma-it1sz 3 ปีที่แล้ว +166

    you can simply run the program by pressing "shift+enter" instead of clicking it
    thank me later

    • @khunkyawmyintaung4778
      @khunkyawmyintaung4778 3 ปีที่แล้ว +2

      Not later , Thank You bro

    • @JamesH377
      @JamesH377 3 ปีที่แล้ว

      how does he start at the beginning of the line after print ("e is less than f")?

    • @kraigkatto2980
      @kraigkatto2980 3 ปีที่แล้ว +1

      thx soooooooomuch

    • @pranavraja8296
      @pranavraja8296 3 ปีที่แล้ว +7

      trick instead of saying a =1 and b = 2 in different lines just say a,b = 1,2

    • @juanitoreal4741
      @juanitoreal4741 3 ปีที่แล้ว

      @@pranavraja8296 thanks, god

  • @jai5834
    @jai5834 2 ปีที่แล้ว

    I can't thank-you enough, you're by far the best online for beginners. Due to Covid I have to change careers as before I was a beautician, but here in Sydney we're still in a full LD. I've always had a love for IT and now I'm gonna pursue it. Thanks to you I actually understand it, tysm

  • @IRWING123ful
    @IRWING123ful 9 หลายเดือนก่อน

    the best tutorial for python i have ever seen on youtube. I have never ever in my life used any code langue. awesome job

  • @waqasbux8109
    @waqasbux8109 6 ปีที่แล้ว +42

    Love U Boss😍😍😍.. Keep it up👍👍👍... And Make Full Course Of python.. (Basic to Advance Levelx) Luv CS Dojo... 😘😘😘😘

  • @haruino
    @haruino 6 ปีที่แล้ว +9

    You're great man! Keep doing your work.

  • @reginaaguilar5529
    @reginaaguilar5529 4 ปีที่แล้ว

    I started watching this video just to know the basics of Python for a school project, but now I want to learn more, because of you.

  • @donasaha1936
    @donasaha1936 2 ปีที่แล้ว

    Ur an honest teacher who wants to help learners .. unlike other self advertising tutorial vdos . I’ll follow all ur vdos .. May God bless u with more knowledge.

  • @MuhammadAhmad-ne4bm
    @MuhammadAhmad-ne4bm 5 ปีที่แล้ว +4

    we can't thanks you enough for your great work ... lots of love

  • @elifyasui3983
    @elifyasui3983 4 ปีที่แล้ว +9

    As a beginner student with no prior experience with any programming, I was very frustrated and lost in my introductory python course. My school assignments seem way too challenging for someone who is so new to this, and it is too fast paced for me to absorb all the information. I just watched your first tutorial and I love the simple way you explain this stuff for beginners like me!! I'll watch everything you put out so far. Thank you so much for doing this and sharing your knowledge to teach others. Now it feels like there is some hope for me to pass this class. Thank you!!!

  • @kacpertrzeciak7060
    @kacpertrzeciak7060 3 ปีที่แล้ว

    Your explaining has helped so much. I've started undertanding what is happening instead of seing random numbers and symbols. Thank you!!!

  • @duncanmwangi3468
    @duncanmwangi3468 3 ปีที่แล้ว +1

    Long live CS Dojo, Good job, I need to transition from Hardware to coding your tutorials are heaven sent

  • @kanialoutis2034
    @kanialoutis2034 6 ปีที่แล้ว +13

    thank u man..love ur videos...cant wait for next python tutorial:)

    • @akramdahmani7214
      @akramdahmani7214 6 ปีที่แล้ว

      sorry is this your real name kaniel outis cuz it's familiar to me???

  • @yorha.a2
    @yorha.a2 6 ปีที่แล้ว +68

    cs_dojo = "awesome"
    if cs_dojo == "awesome":
    print("CS DOJO IS
    AWESOME!")
    else:
    print("CS DOJO IS SMART")

    • @chiragmadaan5919
      @chiragmadaan5919 6 ปีที่แล้ว +7

      Rahat Ali you should write first 2 lines like this
      cs_dojo = "awesome"
      if cs_dojo == "awesome":
      because awesome is a string and you have to put it between " ".

    • @yorha.a2
      @yorha.a2 6 ปีที่แล้ว +4

      Mr. Madaan I forgot 😂😂😂thanks for reminding😐

    • @Assassin-wt8ij
      @Assassin-wt8ij 4 ปีที่แล้ว

      @@chiragmadaan5919 why are we putting 2 equal signs?

    • @volitionant9682
      @volitionant9682 4 ปีที่แล้ว +1

      Visceral Hokage 2 equal signs means the equality operator. Just one equals sign means the assignment operator. Eg x=2 means I am storing the integer 2 inside x. Whereas x==2 means that x is now directly equal to 2. Equality operator is used for comparison, to check if 2 values are equal to each other whereas assignment is used to define variables, arrays etc. So if we defined x=2 and then checked whether x==2 then this would return true. However, if we forgot to assign 2 to x then x==2 would return false. The way of thinking here is reminiscent of algebra.

    • @kuldipyadav2453
      @kuldipyadav2453 3 ปีที่แล้ว

      It's not as dojo it is yk

  • @dadumuhammed1231
    @dadumuhammed1231 3 ปีที่แล้ว

    Your the best online teacher I have seen,you really simplified this topic coz i was somehow discouraged to go on with it,but with your lessons I feel highly motivated keep the good work,thx

  • @Monalicious622
    @Monalicious622 4 ปีที่แล้ว

    this way better then just taking a bootcamp and doing it on your own, the way you explain you make it so much easier to understand.

  • @Miguel-qe6kw
    @Miguel-qe6kw 6 ปีที่แล้ว +19

    I love your videos you deserve more suscribers. by the way i learned so much about your videos i learned more than my school 😂😂😂

  • @ifoundthistoday
    @ifoundthistoday 6 ปีที่แล้ว +48

    no need for two print statements - this works:
    print("bmi: ", bmi)
    print(name, "is not overweight")

    • @BilalAhmed-fd7hu
      @BilalAhmed-fd7hu 4 ปีที่แล้ว +1

      Yeah but "bmi", bmi would be in the same line

    • @haworthluke
      @haworthluke 4 ปีที่แล้ว +3

      i think he is trying to drum these statements into peoples heads bro this is for people with no coding experience

    • @ejcold1467
      @ejcold1467 4 ปีที่แล้ว +3

      I have a question...
      Now plz cut me some slack bc I'm 12 so I don't have access to any programming material
      Plz tell me if you can try it
      ik its just variables , but I'm new to it and I would like to understand coding better
      Chargaffs rule
      A = T
      G = C
      Now, since chargaff's rule will rely on a single number, you give any variable a value
      Ok let's say it's C = 13
      Since C is equal to G, now G is 13
      Next... A = T
      (A+T) + (G+C) = 100
      First of all I just wanna say that this is confidential because I haven't tried it myself, but the code should look like this
      A = any given number
      A = T
      G = C
      (A + T) + (C + G) = 100
      I'm not sure, but now try:
      Print(G)
      So let's say if A is 13 that would mean that T is 13. Together, hence the numbers in parenthesis, this will be 26
      The program will automatically do the math and understand that it subtracts and then divides by two to get G
      G, in this case would equal 37
      Anyone that sees this, plz understand that this is confidential, not likely.
      Also, tell me if it works if you can do it.

    • @ejcold1467
      @ejcold1467 4 ปีที่แล้ว +2

      Looking at it, I think that the code wouldn't work bc of the order of them
      I don't think that g can equal c if it's not defined yet, so try
      A = any given value
      A = T
      100 - (A + T)
      This will be more manual than the last code I wrote bc it will need a little more code
      But anyways...
      I'm not sure how you would work the next thing without knowing the value first
      If you have any answers, plz comment back.

    • @BilalAhmed-fd7hu
      @BilalAhmed-fd7hu 4 ปีที่แล้ว +2

      @@ejcold1467 I tried it
      I got an error saying t is not defined
      Btw you can use a python on an android device with Internet

  • @twarmary8041
    @twarmary8041 3 ปีที่แล้ว

    I love your tutorial, you are a great teacher. I like the way you take everything step by step. Makes it easier to understand than expected

  • @ninawhisper
    @ninawhisper 3 ปีที่แล้ว +2

    I find this 2 years later, whyyyyyyy??!
    I find this so much fun and entertaining, I'm literally skipping homework to learn coding

  • @bdyfitness48
    @bdyfitness48 2 ปีที่แล้ว +4

    Hey YK, i honestly think you're a gifted teacher. You should consider teaching at the university at some point. You explain things very well.

  • @lfb640
    @lfb640 6 ปีที่แล้ว +25

    It's great, I hope I can upload videos more often

    • @rift3354
      @rift3354 5 ปีที่แล้ว +1

      @David Sinca Maybe he said I fam.

    • @rift3354
      @rift3354 5 ปีที่แล้ว

      @David Sinca k, m8

    • @krischurch3763
      @krischurch3763 5 ปีที่แล้ว

      M, k8

  • @kiambimusa7612
    @kiambimusa7612 3 ปีที่แล้ว +1

    This is just far much helpful than most python tutorials on TH-cam

  • @doc9897
    @doc9897 3 ปีที่แล้ว

    Am happy i just found the real lecture for python courses. I am a php web based programmer now i want to extend my knowledge on programming and i hsve started to learn python

  • @keerthanaanandan6062
    @keerthanaanandan6062 5 ปีที่แล้ว +274

    If his teaching > your teacher:
    print("like this comment")
    else:
    print("turn this thumbs up into blue")

    • @jdapoet3138
      @jdapoet3138 5 ปีที่แล้ว +11

      Keerthana Anandan lemme fix it for ya 🤨😉😗
      Insert = input(“Type in bad adjectives : “)
      print(“Keerthana Anandan is “,Insert)
      Cs Dojo = 1
      Teacher = 0
      if Cs Dojo > Teacher:
      print(“Dislike this comment”)
      elif Cs Dojo > Teacher:
      print(“I will stop asking for likes”)
      else:
      print(“Dumb ass”)

    • @joeljames2829
      @joeljames2829 5 ปีที่แล้ว +14

      Keerthana Anandan,
      I know it's a joke but..
      Pretty sure you're gonna have a syntax error cause:-
      1) 'his teaching' and 'your teacher' is not defined
      2) If you're having 'his teaching' or 'your teacher' as a variable, it's wrong syntax cause variables cannot have spaces in them

    • @jdapoet3138
      @jdapoet3138 5 ปีที่แล้ว

      Joel James ikr that s why i fixed that for him 😉

    • @shaughnduty6092
      @shaughnduty6092 5 ปีที่แล้ว

      @@jdapoet3138 lol

    • @stray8468
      @stray8468 4 ปีที่แล้ว

      They're both the same, turning the like button blue and liking the comment are identical variables so I'll play off what RBLXnoob said, Thus you'll use this icon ";" to show it's the same as that, Not else since it isn't something different.

  • @frankenstein7898
    @frankenstein7898 4 ปีที่แล้ว +10

    # :"If" statements are the starter , "Elif" are the mediocre conditions and the last condition to be expected from is "Else", Always go by this order.

  • @Theincompetenthandyman
    @Theincompetenthandyman 5 ปีที่แล้ว

    thank you for making these videos, they are easy to follow and help to build my confidence as I learn from you, hopefully this will mark the beginning of a career change for me

  • @lightsandglass
    @lightsandglass 4 ปีที่แล้ว +1

    My mind is blown! I can actually understand these, so excited to learn more!

  • @palestinian5543
    @palestinian5543 6 ปีที่แล้ว +7

    Ur the best eveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer

  • @ojasplays1899
    @ojasplays1899 6 ปีที่แล้ว +3

    Awesome work man keep it up

  • @edkreso8492
    @edkreso8492 4 ปีที่แล้ว

    Thank you so much!
    The way you explain things is much better than most teachers do

  • @LG-ff5bn
    @LG-ff5bn 4 ปีที่แล้ว

    Started my bachelor in computer science... The teacher didnt make much sense of python but after this 20min... It was a lot easier to understand. Awesome work CS Dojo 👍😘

  • @filippians413
    @filippians413 3 ปีที่แล้ว +3

    I've literally just decided to learn how to code and I can tell I found a great channel to start the process.
    Thanks for making it easy to understand! Do you recommend taking formal classes in college?

    • @damiennewman1992
      @damiennewman1992 3 ปีที่แล้ว

      I would also like to hear this answer. I'm doing this as a hobby, but I'm curious if there is other information related to programing that I should be learning in addition to python itself.

  • @ivangushkov3651
    @ivangushkov3651 5 ปีที่แล้ว +8

    0:36 oof right in the feels, I know I gotta hit the gym more often in exam periods but you don´t have to be this passively aggressive about it :D

  • @MPo-jb7rl
    @MPo-jb7rl 3 ปีที่แล้ว

    You are an extremely good teacher and I actually want to watch more of this now

  • @biggee1
    @biggee1 3 ปีที่แล้ว +1

    This is the best video course on Python, although am 18 years old ;i have learned quite a lot. Thank you so much.

  • @sumitsoni8596
    @sumitsoni8596 6 ปีที่แล้ว +22

    plz make video on algorithm for beingners

  • @windestruct
    @windestruct 3 ปีที่แล้ว +13

    Meanwhile my school teacher: okay so we are now using python please write print("hello world")

    • @roeemayer8242
      @roeemayer8242 3 ปีที่แล้ว +1

      *doesn't explain what it does by end of class*

  • @jammingcoconut2132
    @jammingcoconut2132 3 ปีที่แล้ว +1

    This is such a good teacher its so free,auto stay in ads so this guy gets money

  • @zerocool4580
    @zerocool4580 4 ปีที่แล้ว

    Best video I have seen for a beginners course into python
    -Thank you!

  • @mobarakjama5570
    @mobarakjama5570 6 ปีที่แล้ว +4

    thank you , you are one of my favorite things in the world your dedication and hard work are appreciated. we just started programming in University so this should help like a lot so i was wandering
    what is memory management ?
    i heard that c++ doesn't have auto memory management , and thanks.

    • @fivesquaredyt2521
      @fivesquaredyt2521 5 ปีที่แล้ว

      Mobarak Jama you have to manage memory, python does it for you along with havascript, java, etc. C and C++ require you to use pointers, which is basically memory mangers. It’s faster but harder, but until you are advance, it ant matter for now

  • @harsheyts5047
    @harsheyts5047 6 ปีที่แล้ว +5

    How many program. languages do you know yk?

  • @ahmedkhalid445
    @ahmedkhalid445 4 ปีที่แล้ว +2

    Excellent description, thoroughly enjoyed it as a new beginner.

  • @BailaZumba
    @BailaZumba 2 ปีที่แล้ว

    I be darned. Spent three days on this in AWS re/Start with a horrible instructor and didn't get it. 20 min - and it's all clear. Thank you

  • @vrushabhdhond
    @vrushabhdhond 6 ปีที่แล้ว +205

    Make machine learning video series 👍☺️

    • @omerfarukpak6958
      @omerfarukpak6958 6 ปีที่แล้ว +8

      LD Wyze you?

    • @TencupsGaming
      @TencupsGaming 6 ปีที่แล้ว +1

      ???????????????????????????????????????????????

    • @ricardofricke8297
      @ricardofricke8297 6 ปีที่แล้ว

      This would be really cool.
      Maybe you can youse the menace (tic tac toe) example

    • @tobiass.8496
      @tobiass.8496 6 ปีที่แล้ว

      Nickk Bisht Why should they fire him?

    • @OrangeAlert
      @OrangeAlert 6 ปีที่แล้ว +4

      I agree that he was hired and that liking your own comment is bad.

  • @raknos13
    @raknos13 6 ปีที่แล้ว +4

    Or you can also use string concatenation:
    print(name + " is not overweight")

  • @lost_butterfly314
    @lost_butterfly314 5 หลายเดือนก่อน

    i just saw your videos today sir , i must say you are teacher in a real sense

  • @treeman8969
    @treeman8969 2 ปีที่แล้ว

    This is the first time I've left a comment that's how much I appreciate what your doing

  • @banitamitra4879
    @banitamitra4879 6 ปีที่แล้ว +9

    Sir, I am using python 3.6.4 shell. In this i am unable to type two lines together as
    print (a)
    print (b)
    how this problem can be solved?

    • @hunchortw
      @hunchortw 5 ปีที่แล้ว +2

      there's a gap between print and the letter it should be print(a) *no gap*

    • @missnonsense1263
      @missnonsense1263 4 ปีที่แล้ว

      print(a,b)

    • @Drakonus_
      @Drakonus_ 3 ปีที่แล้ว

      No spacebar between the print and (a). So it's print(a) instead of print (a).

  • @bikkey123
    @bikkey123 6 ปีที่แล้ว +151

    can you give like homework exercises on these? xD its stupid but it may help

    • @ghost-4783
      @ghost-4783 5 ปีที่แล้ว +21

      Indeed! I learn so much more with tasks and challenges, with copy and paste i forget within a few days :(

    • @nirv2796
      @nirv2796 5 ปีที่แล้ว +13

      Ghost - 47 Just make your own homework copying the wording he uses and make a situation like print something where it’s supposed to be a>1 but a is 2 so make code demonstrating that

    • @TheKingOfHero1
      @TheKingOfHero1 5 ปีที่แล้ว +3

      @@ghost-4783 maybe you can find some real situations. Sr for my bad English.

    • @herbgreek5139
      @herbgreek5139 5 ปีที่แล้ว +3

      @@ghost-4783 I forget after a few seconds

    • @volitionant9682
      @volitionant9682 4 ปีที่แล้ว +5

      You can put your knowledge to the test by tackling problem sets on sites such as codingame.com. But I would only suggest doing these once you are at least somewhat accustomed to the fundamentals of programming. Hackerrank.com also provides problem sets which are very simple to begin with and more suitable for absolute beginners.

  • @gabkuskume8597
    @gabkuskume8597 4 ปีที่แล้ว

    Whoa... English is not even my first language but I can understand everything you're telling. You make it so simple compared to other videos I watched before.

  • @daichimax
    @daichimax ปีที่แล้ว

    You are a good teacher! あなたはよい先生だ!
    Thank You for sharing your knowledge! 知識を共有していただきありがとうございます。

  • @siddhijha894
    @siddhijha894 6 ปีที่แล้ว +4

    Thank u You r quick too 😍😍

  • @Birginio420
    @Birginio420 4 ปีที่แล้ว +3

    One day, when I'm not broke asf anymore, I'll donate to all the Patreons of people who teach us something

  • @gavinfraser3607
    @gavinfraser3607 24 วันที่ผ่านมา

    Excellent teacher and very well educated!! For the very first time I am understanding and learning the basics of Python!! Thank you very much for sharing your knowledge and expertise.!!!

  • @rxtdischarge7000
    @rxtdischarge7000 3 ปีที่แล้ว

    People should know how better this is because cs dojo sir is the one of the best Google software developer who is teaching the youth to make them literate and prepare for future .

  • @ElTovarish
    @ElTovarish 4 ปีที่แล้ว +298

    Finally, I now can make Yandere Simulator

    • @K2KOfcoursegg
      @K2KOfcoursegg 3 ปีที่แล้ว +52

      *Accidentally create minecraft*

    • @ronaldo65ful
      @ronaldo65ful 3 ปีที่แล้ว +13

      Lmfaoooo Ayo send the link when you done

    • @bigg6544
      @bigg6544 3 ปีที่แล้ว +42

      maybe you can finally finish it before yandere dev does

    • @Test-ri2kr
      @Test-ri2kr 3 ปีที่แล้ว +3

      El Tovarish Geometry Dash

    • @T.JacobMain
      @T.JacobMain 3 ปีที่แล้ว +8

      Lmaoo. I legit named my file yandere dev

  • @LucianC137
    @LucianC137 5 ปีที่แล้ว +5

    You should have done all this in pycharm because this jupyter thing looks a bit confusing.

  • @maba5202
    @maba5202 5 หลายเดือนก่อน

    you explain coding so much better than my professor and the slides are terrible. Thank you so much man!

  • @afraimuangnory7195
    @afraimuangnory7195 3 หลายเดือนก่อน

    You are the best for me , you have made me developed much interest in programming by making programming easier and understandable. Thank you so much .

  • @HozDHearts
    @HozDHearts 5 ปีที่แล้ว +3

    why in "bmi = weight / ( height ** 2)" you used parenthesis just in height? does it have a special meaning?

    • @swallowedinthesea11
      @swallowedinthesea11 5 ปีที่แล้ว +4

      It takes precedence; remember order of operations from school?
      total = 5 + 90 * 2 # 185
      total = (5 + 90) * 2 # 190

    • @cheesywiz9443
      @cheesywiz9443 4 ปีที่แล้ว

      in this case no
      but if you were doing something like a/(b+2) then writing a/b + 2 would give you the wrong answer

  • @blackzetsu3229
    @blackzetsu3229 4 ปีที่แล้ว +8

    Its just like I'm still learning English in my 9th grade.

  • @chrisfulop8403
    @chrisfulop8403 4 ปีที่แล้ว

    Love your videos! I am just starting to learn python & learning a lot from your teachings. Thank you

  • @Dennisblink
    @Dennisblink 4 ปีที่แล้ว

    These are so comprehensive, yet simple. U are a great teacher

  • @AmitJoshi-cj7fd
    @AmitJoshi-cj7fd 5 ปีที่แล้ว +5

    Dojo plz tell us why did you write
    Print("bmi:" )
    Print("bmi")

    • @jamalifehelpersglobalghana7775
      @jamalifehelpersglobalghana7775 5 ปีที่แล้ว +6

      The first " bmi: " is a string. But the second (bmi) is already a defined variable ( which is the bmi formula)
      Two different bmi there bro

    • @intoxicatedtiger7457
      @intoxicatedtiger7457 4 ปีที่แล้ว

      Also so it is on a new line

  • @aryanshukla2170
    @aryanshukla2170 6 ปีที่แล้ว +3

    What is the difference between if & elif statement. When we use elif statements

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว +13

      Basically you need to use elif when you need to deal with 3 or more conditions!

    • @MahendraSingh-nb7ui
      @MahendraSingh-nb7ui 6 ปีที่แล้ว +1

      Aryan_newyork elif stunds for
      " else if " . The code inside elif is run only when the if condition is false ( the elif condition needs to be true as well ). This is different from else which runs when if condition is false and does not take condition.

    • @allenz.4153
      @allenz.4153 6 ปีที่แล้ว

      When if and else cannot meet your need :)

  • @JohnDoe-fz7hz
    @JohnDoe-fz7hz 3 ปีที่แล้ว

    awesome job you did!!! started yesterday to watch your tutorial! easy to follow each step and very good explained! keep going!!! And thank you very much!!!

  • @godspeed5428
    @godspeed5428 3 ปีที่แล้ว

    I am a medical student.. I came here out of curiosity and watched the 1st 2 tutorials..
    I literally don't know anything about coding or programming, i saw this was for absolute beginners and i clicked it.
    I created a bmi calculator and i am quiet happy & proud of myself.. I will surely stick till the end of this series.
    Thankyou