#20 Python Tutorial for Beginners | While Loop in Python

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

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

  • @JoeyFlowers
    @JoeyFlowers 6 лет назад +1546

    "it's not difficult, it's just unfamiliar"
    I absolutely love this quote and plan on stealing it for so many things. :)
    Also I'll recommend this playlist and give you credit

    • @damansharma6737
      @damansharma6737 5 лет назад +27

      seriously dude ..i just love that quote and no doubt he is the best teacher to learn programming from.

    • @anusmitasamanta2608
      @anusmitasamanta2608 5 лет назад +5

      @@damansharma6737 you are right

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

      Joey flowers do you have entrepeneur in your bio by any chance?

    • @sanjaykumar-wh9ej
      @sanjaykumar-wh9ej 5 лет назад +4

      I scroll down for writing the same comment but you have this comment , hence I liked your comment

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

      That's Klawat كلاوات

  • @Chinarkashmirmusic
    @Chinarkashmirmusic 4 года назад +233

    The moment you said its not hard its unfamiliar . it boosted me to the sky . Thank you ❤

  • @nhnsaru
    @nhnsaru 3 года назад +20

    Thanks for the Quiz. Learnt and and or with If condition.
    *Q - Print numbers from 1-100 skipping the numbers divisible by 3 & 5*
    i=1
    while i

  • @AdityaPandey-ow2yu
    @AdityaPandey-ow2yu 4 года назад +89

    Thx a lot i finally understood. I was stuck in this thing for days until I discovered your video.

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

      Which course u was watching???
      Means of which RUclipsr

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

      @@duniya_ka_papa32 I am watching Corey shafer Or something like that

  • @harshit3985
    @harshit3985 2 года назад +19

    Idk why people say they are not able to understand python lectures in English. He taught in such a nice manner . You are an amazing teacher , hats off to you

  • @ashwingunasekaran7272
    @ashwingunasekaran7272 5 лет назад +71

    Hello Telusko , I am studying in one of the best university for data science and they gave introduction of python loop which i found it difficult to understand even asking them to explain twice but your 15 mins video made it very simple . Really your amazing and thank you so much .

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

      In which university had you studied?

  • @MK-yl7jl
    @MK-yl7jl 6 лет назад +198

    Dude, Debugging saved my life. I wasn't using it until I watched your videos and now I can see how useful it is.
    Thank you so much

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

      Crct bro

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

      Yeah bro, exactly my thoughts

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

      if i use debug its debuging venv how to resolve it ?

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

      Me too

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

      Anyone know how to use debugging function in the same way that he does on VSCode ?

  • @tutohowto5345
    @tutohowto5345 5 лет назад +150

    👌👌👌
    "it's not difficult, it's just unfamiliar"

  • @HayKay_
    @HayKay_ 3 года назад +8

    "It is not difficult, it is just unfamiliar". This is the quote of the year. Learning any new thing can be viewed from this angle. Thank you. 😊

  • @rameshbcom7646
    @rameshbcom7646 4 года назад +28

    I love this channel...
    Edureka and Telusko are 2 channels doing more for the students than the education system itself!
    Keep growing Sir

  • @saranyakandaswaminataraj3980
    @saranyakandaswaminataraj3980 5 лет назад +25

    Python tutorial is very good and you explained it in a detailed step by step manner. Thank you sir.
    1st question:
    i=1
    while i

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

      Why i=i+1 twice?

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

      Thank u

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

      @@standman007 cause if condition fails it doesn't do anything

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

      Thanks for sharing this. I didn't know how to exclude numbers that are divisible by 3 and 5 from the code.

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

      a = 1
      while a < 101:
      if a % 3 and a % 5 != 0:
      print(a)
      a = a + 1
      thank you for the logic. instead of that we can directly assign the increment under the while statement.
      Please correct me anyone, if I'm wrong

  • @fathimaarafa2585
    @fathimaarafa2585 6 лет назад +30

    to be honest, you are really a great teacher and a wonderful programmer

  • @mahadevprasadpal7829
    @mahadevprasadpal7829 3 года назад +618

    So no-one is here after 3 years 😂 except me and still this video is a great solution 😀👍👍

  • @a.m.an-nafeeal-affao8710
    @a.m.an-nafeeal-affao8710 11 месяцев назад +1

    "It's not difficult, it's just unfamiliar". Totally fallen in love with this quote, bro!! You truly are the best!! Thank you so much!! Love from Bangladesh!!

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

    this Indian guy make me in another world I have been searched this while loop but I don't get any clear explanation but when I see his tutorial then I just see one time and I remember everything
    LOTS OF LOVE FROM BANGLADESH. Go ahead, sir!!!!!!!!

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

    I have never seen in my whole life, a person teaching better than this for if else,while loop explanation...Kudos bro for great job!!

  • @abhi36292
    @abhi36292 5 лет назад +23

    downloaded many python courses from different sites , couldn't grasp them very well,this helped
    thanks sir
    subscribed :)

  • @bhuvanspahuja2008
    @bhuvanspahuja2008 5 лет назад +19

    For Printing values from 1 to 100 excluding numbers divisible by 3 or 5
    i=1
    for i in range (1,101):
    if(i%3 ==0 or i%5==0):
    continue
    else:
    print(i)
    For Printing the '#' pattern
    i=1
    while i

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

    After searching so many channels I found your channel for pythod ..
    Now my search end here ..
    I must say ur python playlist is best on RUclips

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

    I must say , being a new person to learn programming language, i am having so much of interest and fun for watching your videos, the way you are teaching is marvelous. Thank you so much for making easy task for us.

  • @shaikatmajumder3156
    @shaikatmajumder3156 5 лет назад +8

    i dont generally comment in youtube videos even if i like them. But Sir your videos are truly a class apart. I mean its so simple and precise! Got just exactly what i needed. I hope you keep on releasing more videos.

  • @nagarajmpn
    @nagarajmpn 5 лет назад +42

    The way of teaching and presentation are simply awesome! You are one of my inspiration. Please take a bow from me! Naveen

  • @sharukhmemon9841
    @sharukhmemon9841 5 лет назад +5

    I was finding a channel for Python learning from basics and then I got this channel (y).
    your way of teaching is superb.
    Thank you soo much for these videos.

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

    I absolutely love how he teaches you while making mistakes on purpose,then correct the mistake while explaining it as simple as possible,the teaching effectiveness is just so up there.
    Thank you I needed something like this 😆

  • @mustakimkhan469
    @mustakimkhan469 4 года назад +35

    Solution Q1) Print the numbers from 1-100 skipping the numbers divisible by 3 & 5
    a=1
    while a

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

      it is considering or operaator format bro, wrong code

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

      @@srinathasri7204 u will write here the code

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

      why didn't you use "or" ?

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

      the code is correct
      ! = not
      the code is saying if a%3 and a%5 is NOT equal to 0
      print(a)
      if you dont have to use and ! you can use or in the following way
      i = 1
      while i

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

      @@playshub5398 I agree but I just don't get why would he use (if a%3 and a%5) shouldn't we use or to include every number divisible by 3 or 5

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

    Q.2.
    i = 1
    while i

  • @piyushpratap3959
    @piyushpratap3959 5 лет назад +30

    Print('Tekusko
    '*1000)
    Best way

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

    I was not able to understand this concept and found myself as a fresher to this concept, I want to say thank you for making these simple videos so as to make it more "familiar" and "clear" to us and that too in an intresting way🥰

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

    This is not difficult, it is unfamiliar.. Mind blowing quote. Hats off to your sir. This quote and your teaching has altered by approach to learn. Great..

  • @Prashant-gj8hl
    @Prashant-gj8hl Год назад +306

    Any one here in 2024..??

  • @Josephmargay
    @Josephmargay 5 лет назад +35

    Code for question 2:
    a = 1
    while a

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

      @Joseph Margay What Is The Use Of 5*

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

      @@tirthpatel7388 *5 is used to print '#' 5 times on the same line

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

      @joseph margay i think it will print like #####, but our output is like # # # # #. Do u know how to resolve this issue. I suggest '# ' one space between the qoute. Is that correct?

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

      @@gopikrish5997 i = 1
      while i

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

      @@bablukumarpatel1962 what thqi print() at the end of code is used for...is it to print the outer loop in New line each time

  • @maresaedwards8471
    @maresaedwards8471 3 года назад +17

    Thank you so much for putting this together and walking through every step! This is so helpful for learning and really coming to understand how loops work in a programming mindset. I'm going to rewatch it again and again until I memorize this ha!

  • @janamshah190
    @janamshah190 4 года назад +12

    for x in range(1,101):
    If x%3!=0 and x%5!=0:
    print(x)

    • @evo-star7850
      @evo-star7850 3 года назад

      But it have to be in while loop, he haven't taught for loop till now

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

      @@evo-star7850 a=1
      while a

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

      is it "for loop" ? But it has not been taught yet ! may be in next video

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

    super sir ! i was taught while loop in C in class 11th, 30 years back, the looping now u have explained is marvelous ! Great ! God Bless You !

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

    2Q ans:
    i=1
    while i

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

    Here is the answer to the first question(But taking everthing from user. The starting and ending point of the range we need to check and the two multiples which we need to remove)
    x = int(input("Enter the number where the range should start: "))
    t = int(input("Enter the number where the range should end: "))
    y = int(input("Enter the 1st number whose multiple you want to remove: "))
    z = int(input("Enter the 2nd number whose multiple you want to remove: "))
    b = x
    while b

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

    This is not difficult.......
    This is just unfamiliar......🔥👍
    Today's Motivation.

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

    Love how you speak so fast. Makes it easier to understand somehow. Easier to concentrate. Your instructions are also very clear. I understood perfectly.

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

    When everyone is trying to make things mug up, Naveen u stood out for explanation and your explanations are easy and best.
    Exceptionally best you are Naveen.

  • @damansharma6737
    @damansharma6737 5 лет назад +20

    best teacher on youtube..i will surely suggest this playlist to everyone.

  • @vijayaragavanselvaraj8087
    @vijayaragavanselvaraj8087 4 года назад +23

    Code for # pattern:
    r=int(input("Enter the number of Row(s): "))
    c=int(input("Enter the number of Column(s): "))
    i=1
    while i

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

      we can make it for any symbol:
      r = int(input("Enter the No of rows: "))
      c = int(input("Enter the No of Columns: "))
      s = input("Enter the Symbol for the pattern: ")
      i=1
      while i

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

      You can use this for the spaces
      r = int(input("Enter the number of Row(s): "))
      c = int(input("Enter the number of Column(s): "))
      s = input("Enter the Symbol for the pattern: ")
      i = 1
      while i

  • @veneranurdin8410
    @veneranurdin8410 6 лет назад +60

    Answer to 2nd task:
    a=1
    while a

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

    coming from mechanical background .....having zero knowledge of programming ....Navin sir has made it so very much easy for me...U were my teacher in 12th std i would have taken Computer engg....It was fear of programming that didnt allow me take C.S. Engg. But Navin Sir amazingly changed the way i look at programming now.Hats Off to u Sir

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

    Thank you Teluskoo 😍💖. You are awesome!😎
    I saw some tutorial videos, you stood out of the box.🔥
    Why I am happy to say this because, I tried to solve a program (as a beginner) with OUTPUT: 1+2+3+...+n= total sum of n numbers.😥🥵
    I by own got the idea after seeing this while loop tutorial and got the exact ouput. YAY! 🎊🎉
    My Program:
    n = int(input("Enter the Number: "))
    i = 1
    sum = 0
    while i

  • @khajakhaja3
    @khajakhaja3 4 года назад +14

    1) Write Tables from 1 to 20
    i=1
    while i

  • @creater4u649
    @creater4u649 6 лет назад +16

    Prog:1-
    i=1
    while i

  • @adeelab6141
    @adeelab6141 6 лет назад +12

    If/Elif/Else statement...
    x = 1
    while x

    • @AnkushKumar-qc1ny
      @AnkushKumar-qc1ny 4 года назад

      thanks for help brother

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

      By any chance without using if else loop can we solve this

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

      Nice job but you could simplify this down to:
      i = 1
      while(i

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

      Dear@@mohammedsaad364 ,
      Finally found such a comment.
      I have a similar doubt ; can the code (for displaying numbers from 1 to 100 skipping numbers divisible by 3 and 5) be programmed with using 'nested while' loop only..?
      But out of all the comments neither have I found help by Naveen Sir (Telusko's creator) nor a program that uses nested loop without the help of 'if', 'for', etc.
      just because of this मैं समझा भी नहीं और पापा (जो मदद दे रहे थे, जो मैंने इंकारकर दिया) से डाँट भी मिल गया।
      aaee dond no vai aaee dond unddarstaennd thayht aaee aym suppojzd tu kurrakcyt maaee mistaykhs, vvvaaaaiiii ddduuuu aaaeee ssstoppp maaaaeee ssseeeyyylllpppphhhh pppphhhhrruuuumm lllluuuurrrrrnnniiiinnnngggggghh...!!???
      😣😫😒😩😔😖😞😪

  • @rei-rv3py
    @rei-rv3py 6 месяцев назад

    1) while i < 100 :
    i += 1
    while i % 3 != 0 and i % 5 != 0:
    print(i)
    i += 1
    2)i = 1
    while i

  • @alpha-zed6698
    @alpha-zed6698 3 года назад +1

    thanks! i just started learning python 2 days ago with the help of my cousin who knows python. He hasn't taught me loops yet... This video really helped.😁

  • @dipanshparmar3769
    @dipanshparmar3769 5 лет назад +17

    Solution for 1st problem:
    for i in range(1,101):
    If i % 3 == 0 or i % 5 == 0:
    continue
    else:
    print(i)

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

      we havent learned range yet..

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

      Where is this program in this video

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

      I tried the using the continue function but when I printed it, the program stopped at 2

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

      we are studying for While, i think we should try use for while first. Here is my solution and i saw it worked:
      i=1
      while i

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

      @@DauDoful can you explain logic behind i am unable to understand
      if i%3==0 or i%5 ==0:
      print(end=" ")

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

    Finally I can Visualise the loops that how they work. Thanks a lot sir. Without your help I can't learn coding as i didn't visualise the code. I love it sir ❤️

  • @sampaksasa3756
    @sampaksasa3756 5 лет назад +40

    0:55 but why you want to print telusko 1000 times thats called an alien thing. XD
    just kidding sir you are the best teacher i have ever got on youtube : )

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

    Answer:
    (a)
    i = 1
    while i < 101:
    if (i % 3) !=0 and (i % 5) !=0:
    print(i)
    i+=1
    (b)
    i = 1
    while i < 6:
    j = 1
    while j < 6:
    print("#", end="")
    j+=1
    i+=1
    print()

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

    very nice explanation and due to u i can now learn the language PYTHON SO fast as i had not thougth .

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

    That was one of the best programming explanations. I wish everyone did tutorials like this.

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

    I really enjoyed his way of teaching and the way he explains the concept is just amazing 👍👍👍👍

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

    On the first sight I found it difficult, but after practicing some more examples, What I found is that its not difficult Its just unfamiliar.
    But at last THANK YOU sir for all your efforts...

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

    A = 1
    while A

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

    Your attitude, Man, out of the world, every time i finish one chapter, gives a great feeling that I have learnt something nice from you today.

  • @songnetwork2215
    @songnetwork2215 5 лет назад +4

    Hey you're familiar with this language but then also you're doing mistakes so we can understand this concept clearly
    THANKYOU SOOOOO MUCH👍💕👍💕

  • @riaz_ay
    @riaz_ay 5 лет назад +10

    1.1st method
    i=1
    while i

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

      1st method even i had tried but its not working

  • @chetana_pd
    @chetana_pd 5 лет назад +16

    Code of question 1: -
    a=1
    while a

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

    Sir u r god for me ,the way u explain, no one can explain like u in world ,,,thank you sir

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

    sir firstly the debugging concept is very defficult for me ....but now it's very easy becoz of u....so thank u so much sir for this....really u r too good.

  • @VinayKumar-hj2qi
    @VinayKumar-hj2qi 6 лет назад +5

    i = 0
    while i

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

    Thank you Sir : ) please give more questions
    Ans:
    1.
    i = 1
    while i

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

      where didi you find these questions

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

      In the first question solution why there is 'and' , it should've been 'or'.
      Because if any one condition is true it'll get inside and print the number why it has to check both the condition?

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

      @@rajtrivedi5031 i tried using 'or' but it is not giving the desired output. but when I used "and" it gives the desired output.

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

    This much examples really helped my thinking.
    Perfect video for while loop🔥

  • @NikhilKumar-ue6pr
    @NikhilKumar-ue6pr 4 года назад +1

    python master really cant find sir like this on youtube no chance!!best

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

    This knowledge is sold for millions
    Do give this man a like👍🏻 for which too he never asked for 😊

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

    1
    for i in range(1,101):
    if(i%3!=0) and (i%5!=0):
    print(i)
    2
    for i in range(4):
    print("#####")

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

      bro u have to do by using while loop not FOR LOOP.

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

      @@baigantv7372 I got that
      2nd question answer :
      n = 1
      while n

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

      @@hemanthsai8771 mashah allah Congrats bro well done , you have to practice with several questions same loop, just by doing one dont skip, in google search while loop question etc.

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

      invalid syntax

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

    Sir your playlist on Core Java is great where everything is organised very well. Hope you will do the same for python!

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

    The most amazing teacher!

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

    Great method of teaching, At first I thought "how can a person learn coding from youtube". But now after watching your video @NaveenReddy sir its very easy and interesting to learn python. Even after going to physical classes I feel that your videos are enough to learn python

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

    The way you teach is speechless........ Never before ever after classes.. Superb ❤thanks a lot sir😊

  • @investorskaghar5000
    @investorskaghar5000 5 лет назад +29

    i=1
    while i

  • @Nitheesh6
    @Nitheesh6 5 лет назад +5

    hi!! actually i had subscribed udemy website for learning python. i had lots and lots of doubts after seeing that videos . but after seeing your stuffs my doubts are cleared.. thanks for making these videos for us.. want to learn more from you.

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

    Only me who is here after 5 years😌?

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

    you are the best teacher of programming.I just feel that i am doing a paid 5 star course.Carry on

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

    i had a hard time with while loops and you made it so simple, thank you Navin!!

  • @prakash1171
    @prakash1171 5 лет назад +9

    Woowww Seriously I want to learn like that who can solve and things with debugging.

  • @Inshorts_pk
    @Inshorts_pk 2 года назад +10

    1. Code to print numbers from 1 to 100, skip numbers which are divisible by 3 and 5
    i = 1
    while i

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

    for 1 question
    i=1
    while i

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

    a=int(input('enter 1st number'))
    b=int(input('ENTER 2ND NUMBER'))
    c=int(input('enter 3rd number'))
    if a>b:
    if a>c:
    print('a is greatest')
    elif(b>a):

    if b>c:
    print('b is greatest')
    else:
    print('c is greatest')

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

    "This is not difficult" your teaching and explanation is very clear, thanks you god. You alive in telusuko heart@telusuko

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

    Hello Sir! Your efforts and energy level are superb. Thanks for helping us. Really appreciable. God Bless You Sir :-)

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

    i = 1
    while i

  • @onlysparsh
    @onlysparsh 5 лет назад +8

    sir love u,, ur excitement in coding makes me excited too

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

    Quiz Quesions
    1)
    a = 1
    while a < 101:
    if a % 3 and a % 5 != 0:
    print(a)
    a = a + 1 (here incremented for while)
    2) type1
    a = 1
    while a < 5:
    print('# # # # #')
    a = a+1
    type 2
    a = 1
    while a < 5:
    print('#', end=' ')
    b = 1
    while b < 5:
    print('#', end=' ')
    b = b + 1
    a = a + 1
    print()

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

    love u sir.... i,ve just wached ur video for 2:33 and started feeling better

  • @ManishSingh-vy5ne
    @ManishSingh-vy5ne 4 года назад +20

    Hey we can also do that by the following code.
    a = 1
    while a

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

    1. Write a code to print all values from 1 to 100, Skip the number which are divisible by 3 or 5
    i = 1
    while i

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

    i=100
    while i>0:
    if i%3!==0 and i%5!==0:
    print(i)
    i=i-1

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

    here are answers to the questions in the end of video (just in case if u want to check)
    1.
    n = 1
    while n 0:
    col = 5
    while col > 0:
    print(' #',end='')
    col = col-1
    row = row -1
    print()
    thanks telusko for these questions at the end, really helps brush up concepts learnt!

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

    1.
    a=1
    while a= 1 and a % 5 >= 1:
    print(a)
    a=a+1
    2.
    j=1
    while j

  • @amitkabi
    @amitkabi 5 лет назад +14

    1st problem:
    i=0
    while i

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

      You've written i+=1 two times. It leads to miscounting and the output starts from 2 and not 1.

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

      There should be "AND" not "OR" in if statement

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

      sir could you please help me how to figure out this issue i need some help if you don't mind and i appreciated your effort,
      In nuclear physics, the half-life is used to describe the rate with which elements undergo radioactive decay. More precisely, it is the time required for an element to reduce in half.
      Let's take an isotope of Radium (Ra) called radium-223. Say, its half-life is about 12 days. This means that every 12 days the number of atoms reduces in half. Write a program that calculates how many full half-life periods (in days) it would take for a certain amount of radium-223 to reduce to a specific value.
      The input format:
      The first line with the starting amount of atoms N (from 2 to 1,000,000), the second line with the resulting quantity R.
      The output format:
      The number of full half-life periods (in days) T it would take for radium-223 to reduce from N to R.
      Assume that any change would take at least 1 half-life period. Suppose, the initial number of atoms is 4 and the resulting quantity equals to 3. In 12 days, the number will reduce to 2 atoms. Since we are counting full half-life periods, you should write 12 and so on.
      Sample Input 1:
      4
      3
      Sample Output 1:
      12

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

    his tutorails are beginner friendly

  • @jmanisha3896
    @jmanisha3896 5 лет назад +4

    Thanks a lot sir.. It really helped me alot...

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

    you are the best teacher i have seen in my life.

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

    I am taking classes on Coursera, LinkedIn, and EdX. I find your explanations and exercises helpful and stimulating.
    DISCLAIMER: I like to write clean code and use less lines.
    PROBLEM 1:
    Write a code to print all values from 1 to 100
    Skip the numbers which are divisible by 3 or 5
    n = 1
    while n