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

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

Комментарии • 2,6 тыс.

  • @CSDojo
    @CSDojo  6 лет назад +621

    Below is an outline of this video.
    Also, a few tips:
    1. Here is the playlist for this series: ruclips.net/video/Z1Yd7upQsXY/видео.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?

  • @Fan-fi7jb
    @Fan-fi7jb 2 года назад +160

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

  • @tariq0513
    @tariq0513 5 лет назад +909

    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 года назад +53

      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

  • @lennoxlewis9513
    @lennoxlewis9513 4 года назад +254

    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 4 года назад +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 9 месяцев назад +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

  • @WellingtonMSB
    @WellingtonMSB 3 года назад +32

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

  • @anushkaroy6666
    @anushkaroy6666 6 лет назад +2337

    This is honestly 1000x better than my school teacher lol

    • @MeowIsKindaFunny
      @MeowIsKindaFunny 6 лет назад +14

      totally

    • @shafwa234
      @shafwa234 6 лет назад +48

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

    • @OsadeTOOT
      @OsadeTOOT 6 лет назад +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

  • @vishnuvengadeswaran1363
    @vishnuvengadeswaran1363 6 лет назад +193

    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 4 года назад +1

      Hi

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

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

  • @ArnavYT
    @ArnavYT 6 лет назад +196

    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

  • @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 5 лет назад

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

  • @thatboyjwan5271
    @thatboyjwan5271 5 лет назад +144

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

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

      hey what's your situation now?

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

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

  • @erikappelquist3363
    @erikappelquist3363 6 лет назад +842

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

  • @clayvalarezo8647
    @clayvalarezo8647 6 лет назад +497

    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 5 лет назад +1

      me too

    • @bvipee6095
      @bvipee6095 5 лет назад +1

      as in I agree

    • @clintchrystie6727
      @clintchrystie6727 5 лет назад +2

      @@mikeprincivil7615 me too

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

  • @berylgreen1973
    @berylgreen1973 6 месяцев назад +1

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

  • @toniCbenn56
    @toniCbenn56 3 года назад +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!!

  • @afshakhan4589
    @afshakhan4589 6 лет назад +13

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

  • @braddavids4095
    @braddavids4095 6 лет назад +48

    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!

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

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

    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

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

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

  • @yorha.a2
    @yorha.a2 6 лет назад +69

    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 4 года назад

      It's not as dojo it is yk

  • @rafiksalmi5951
    @rafiksalmi5951 4 года назад +363

    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_ 4 года назад +6

      Not enough dedication.

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

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

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

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

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

    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

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

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

  • @ifoundthistoday
    @ifoundthistoday 6 лет назад +48

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

    • @BilalAhmed-fd7hu
      @BilalAhmed-fd7hu 5 лет назад +1

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

    • @haworthluke
      @haworthluke 5 лет назад +3

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

    • @ejcold1467
      @ejcold1467 5 лет назад +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 5 лет назад +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 5 лет назад +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

  • @AyushSharma-it1sz
    @AyushSharma-it1sz 4 года назад +167

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

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

      Not later , Thank You bro

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

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

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

      thx soooooooomuch

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

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

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

      @@pranavraja8296 thanks, god

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

    You're a good teacher....you don't assume pple know all things
    Am grateful

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

  • @bdyfitness48
    @bdyfitness48 3 года назад +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.

  • @oguzkaanyilmaz2387
    @oguzkaanyilmaz2387 5 лет назад +7

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

  • @aravindadeejayz3847
    @aravindadeejayz3847 5 лет назад +6

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

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

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

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

    This guy is born to be a teacher . amazing

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

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

  • @waqasbux8109
    @waqasbux8109 6 лет назад +42

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

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

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

  • @slippery_gecko9274
    @slippery_gecko9274 5 лет назад +6

    a = 3
    b = 2
    if a < b:
    print("a is less than b my boi")
    elif a == b:
    print("the bois seem to have the same value")
    else:
    print("b is the bigger boi")

  • @keerthanaanandan6062
    @keerthanaanandan6062 5 лет назад +275

    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 5 лет назад

      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.

  • @bikkey123
    @bikkey123 6 лет назад +152

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

    • @ghost-4783
      @ghost-4783 6 лет назад +21

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

    • @nirv2796
      @nirv2796 6 лет назад +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.

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

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

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

  • @sumitsoni8596
    @sumitsoni8596 6 лет назад +22

    plz make video on algorithm for beingners

  • @lfb640
    @lfb640 6 лет назад +25

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

  • @filippians413
    @filippians413 4 года назад +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 4 года назад

      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.

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

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

  • @ivangushkov3651
    @ivangushkov3651 6 лет назад +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

  • @raknos13
    @raknos13 6 лет назад +4

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

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

    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

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

  • @MuhammadAhmad-ne4bm
    @MuhammadAhmad-ne4bm 6 лет назад +4

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

  • @LucianC137
    @LucianC137 6 лет назад +5

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

  • @windestruct
    @windestruct 4 года назад +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*

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

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

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

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

  • @haruino
    @haruino 6 лет назад +9

    You're great man! Keep doing your work.

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

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

      print(a,b)

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

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

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

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

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

    a = 8100
    b = 90
    if a == b:
    print("yes of the softest type")
    else:
    if a < b:
    print("No of the hardest type")
    elif a > b + 80:
    print("it is a deadlock, stand down")
    if a == b ** 2:
    print("a is truely false")

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

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

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

  • @ElTovarish
    @ElTovarish 4 года назад +298

    Finally, I now can make Yandere Simulator

    • @K2KOfcoursegg
      @K2KOfcoursegg 4 года назад +52

      *Accidentally create minecraft*

    • @ronaldo65ful
      @ronaldo65ful 4 года назад +13

      Lmfaoooo Ayo send the link when you done

    • @bigg6544
      @bigg6544 4 года назад +42

      maybe you can finally finish it before yandere dev does

    • @Test-ri2kr
      @Test-ri2kr 4 года назад +3

      El Tovarish Geometry Dash

    • @T.JacobMain
      @T.JacobMain 3 года назад +8

      Lmaoo. I legit named my file yandere dev

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

    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.

  • @tcbandeira
    @tcbandeira 5 лет назад

    I'm Brazilian and this python's lessons is very nice to build my portifolio's projects! Ty so much Teacher!

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

  • @palestinian5543
    @palestinian5543 6 лет назад +7

    Ur the best eveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer

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

  • @LG-ff5bn
    @LG-ff5bn 5 лет назад

    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 👍😘

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

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

  • @keerthanaanandan6062
    @keerthanaanandan6062 5 лет назад +7

    Who else watching this on July/2019 ❤️

    • @kareemabdelaziz352
      @kareemabdelaziz352 5 лет назад +1

      me

    • @jdapoet3138
      @jdapoet3138 5 лет назад

      Try this code 😗 don t copy paste it will get error
      import random
      random = random.randint(1,4)
      print(“Random number: “,random)
      if random == 1:
      print(“Cs Dojo is the best”)
      elif random == 2:
      print(“i love Cs Dojo!!!”)
      elif random == 3:
      print(“Cs Dojo is much better than my teacher!!!”)
      else:
      print(“i probably did sth wrong at line 2 “)

    • @AmitJoshi-cj7fd
      @AmitJoshi-cj7fd 5 лет назад

      Yes

    • @AmitJoshi-cj7fd
      @AmitJoshi-cj7fd 5 лет назад

      Why did he write
      Print ( "bmi: ")
      😪😪

  • @harsheyts5047
    @harsheyts5047 6 лет назад +5

    How many program. languages do you know yk?

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 4 года назад +7

    "elif"?
    They couldn't use "else if" like other languages?
    I guess python had to be different from others.

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

      Probably just tryna be quirky

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

    Buddy! Thank you so much! I don't know shit about coding and now I feel like I know a little. I am going to go through this whole series!

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

    i just finished tutorial #2 and this have been really helpfull for me as im in my 2nd yr of college now. sir thank u for this

  • @hiranath1699
    @hiranath1699 5 лет назад +3

    So print (“bmi: “) is for string and another print(bmi) is for the integer, right?

  • @justashushi
    @justashushi 4 года назад +19

    Me: Im now a programmer.🤓
    Thumbnail : im i a joke to you.😈

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

      No what's a joke is your grammar, no offence.

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

      @@fabulum149 your also!!🤷🏼‍♀️

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

      SUPER SISTER How?

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

      @@fabulum149 lmao n1

  • @siddhijha894
    @siddhijha894 6 лет назад +4

    Thank u You r quick too 😍😍

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

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

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

    c = 25
    d = 10
    if c < d:
    print ("c is LESS than d")
    else:
    if c==d:
    print ("c is EQUAL to d")
    else:
    print ("c is greater than d")
    THIS ALSO WORKS

  • @mesutguneri5519
    @mesutguneri5519 6 лет назад +22

    DOES PYTHON BITE ME?

  • @afterrain37
    @afterrain37 4 года назад +10

    Why do you always say "Jupyter Notebook" quickly lmaoo

  • @aalavbri3812
    @aalavbri3812 5 лет назад

    You are the best programmer teacher than almost all these other teachers on RUclips trying to teach people. You should be a teacher who teaches programming at a school. You would be good.

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

    Such a true mentor for me in learning python, As I'm totally new in this programming world and you made me easy this, Thank you so much

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

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

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

    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 .

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

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

  • @willblot6359
    @willblot6359 3 года назад +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!

  • @rahuthan7195
    @rahuthan7195 5 лет назад

    Thanks so much! my dad brought a gaming laptop and he said we can only game if use the laptop for educational purposes and he said who ever did it the most would keep it and thanks to you I have a gaming laptop and it's awesome and the fact that i'm only 11 years old doing this ( not to brag or anything ) is amazing.

  • @Saad-hi1zz
    @Saad-hi1zz 4 года назад +1

    so good explained
    i am a 11yearold learning how to program i have done qbasic but python looked much better for me
    so i saw your video and voila main talk of my class myself

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

    This is just far much helpful than most python tutorials on RUclips

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

    This guy is good, not a boring teacher at all. Learning python after a couple of years of always putting it off. Wanna see what I can do with it in a linux environment for systems, network and server administration.
    Also if you guys don't want the hassle of installing programs to get an IDE going, go to repl.it/, you have an IDE via your browser. :)

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

    Your teach is always my number one option to learn python

  • @gabkuskume8597
    @gabkuskume8597 5 лет назад

    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.