"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
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
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 .
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
"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!!
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!!!!!!!!
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
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.
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.
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.
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 😆
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
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🥰
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..
@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?
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!
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
Love how you speak so fast. Makes it easier to understand somehow. Easier to concentrate. Your instructions are also very clear. I understood perfectly.
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.
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
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
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
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
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...!!??? 😣😫😒😩😔😖😞😪
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.😁
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 ❤️
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 : )
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()
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...
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.
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?
@@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.
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
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.
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()
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!
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
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
"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
seriously dude ..i just love that quote and no doubt he is the best teacher to learn programming from.
@@damansharma6737 you are right
Joey flowers do you have entrepeneur in your bio by any chance?
I scroll down for writing the same comment but you have this comment , hence I liked your comment
That's Klawat كلاوات
The moment you said its not hard its unfamiliar . it boosted me to the sky . Thank you ❤
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
Thx a lot i finally understood. I was stuck in this thing for days until I discovered your video.
Which course u was watching???
Means of which RUclipsr
@@duniya_ka_papa32 I am watching Corey shafer Or something like that
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
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 .
In which university had you studied?
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
Crct bro
Yeah bro, exactly my thoughts
if i use debug its debuging venv how to resolve it ?
Me too
Anyone know how to use debugging function in the same way that he does on VSCode ?
👌👌👌
"it's not difficult, it's just unfamiliar"
yaa
"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. 😊
I love this channel...
Edureka and Telusko are 2 channels doing more for the students than the education system itself!
Keep growing Sir
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
Why i=i+1 twice?
Thank u
@@standman007 cause if condition fails it doesn't do anything
Thanks for sharing this. I didn't know how to exclude numbers that are divisible by 3 and 5 from the code.
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
to be honest, you are really a great teacher and a wonderful programmer
So no-one is here after 3 years 😂 except me and still this video is a great solution 😀👍👍
I'm here🤣🤣
Am also here
You are not alone here 😀
I’m here😂
I'm
"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!!
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!!!!!!!!
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!!
downloaded many python courses from different sites , couldn't grasp them very well,this helped
thanks sir
subscribed :)
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
Thanks for the first !!
a=1
while a
@@melwinlal8803 This never works
@@kimsah2112 it will try it bro
Use or instead of and ,I know its late still..
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
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.
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.
The way of teaching and presentation are simply awesome! You are one of my inspiration. Please take a bow from me! Naveen
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.
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 😆
Solution Q1) Print the numbers from 1-100 skipping the numbers divisible by 3 & 5
a=1
while a
it is considering or operaator format bro, wrong code
@@srinathasri7204 u will write here the code
why didn't you use "or" ?
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
@@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
Q.2.
i = 1
while i
Thank you thank youuuuuuuu
Print('Tekusko
'*1000)
Best way
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🥰
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..
Any one here in 2024..??
Uni got me here 😢
Yes
Definitely bro.
April 1 2024 😅
@@AM-HillsideWorksyou’re not alone brother , let go get it ✊🤞
Code for question 2:
a = 1
while a
@Joseph Margay What Is The Use Of 5*
@@tirthpatel7388 *5 is used to print '#' 5 times on the same line
@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?
@@gopikrish5997 i = 1
while i
@@bablukumarpatel1962 what thqi print() at the end of code is used for...is it to print the outer loop in New line each time
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!
for x in range(1,101):
If x%3!=0 and x%5!=0:
print(x)
But it have to be in while loop, he haven't taught for loop till now
@@evo-star7850 a=1
while a
is it "for loop" ? But it has not been taught yet ! may be in next video
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 !
2Q ans:
i=1
while i
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
This is not difficult.......
This is just unfamiliar......🔥👍
Today's Motivation.
Love how you speak so fast. Makes it easier to understand somehow. Easier to concentrate. Your instructions are also very clear. I understood perfectly.
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.
best teacher on youtube..i will surely suggest this playlist to everyone.
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
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
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
Answer to 2nd task:
a=1
while a
lol
nice!
Cheated😂😂😂
Lol
X=‘#####’
For i in x:
Print(x)
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
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
1) Write Tables from 1 to 20
i=1
while i
Thank u, but the i should less or equal to 2
The value get complete square
Hello bro ur num pls
Thanks❤
Prog:1-
i=1
while i
prog:2 syntaxError: invalid character in identifier
Try this, i got output using your code too
i=1
while i
@@losttraveller_tales i=1
j=1
while i
If/Elif/Else statement...
x = 1
while x
thanks for help brother
By any chance without using if else loop can we solve this
Nice job but you could simplify this down to:
i = 1
while(i
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...!!???
😣😫😒😩😔😖😞😪
1) while i < 100 :
i += 1
while i % 3 != 0 and i % 5 != 0:
print(i)
i += 1
2)i = 1
while i
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.😁
Solution for 1st problem:
for i in range(1,101):
If i % 3 == 0 or i % 5 == 0:
continue
else:
print(i)
we havent learned range yet..
Where is this program in this video
I tried the using the continue function but when I printed it, the program stopped at 2
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
@@DauDoful can you explain logic behind i am unable to understand
if i%3==0 or i%5 ==0:
print(end=" ")
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 ❤️
What0is the meaning of console
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 : )
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()
very nice explanation and due to u i can now learn the language PYTHON SO fast as i had not thougth .
That was one of the best programming explanations. I wish everyone did tutorials like this.
I really enjoyed his way of teaching and the way he explains the concept is just amazing 👍👍👍👍
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...
A = 1
while A
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.
Hey you're familiar with this language but then also you're doing mistakes so we can understand this concept clearly
THANKYOU SOOOOO MUCH👍💕👍💕
1.1st method
i=1
while i
1st method even i had tried but its not working
Code of question 1: -
a=1
while a
i = 0
while i
Use or instead of and
Sir u r god for me ,the way u explain, no one can explain like u in world ,,,thank you sir
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.
i = 0
while i
initialize i from 1
Wrong
i=1
while i
Thank you Sir : ) please give more questions
Ans:
1.
i = 1
while i
where didi you find these questions
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?
@@rajtrivedi5031 i tried using 'or' but it is not giving the desired output. but when I used "and" it gives the desired output.
This much examples really helped my thinking.
Perfect video for while loop🔥
python master really cant find sir like this on youtube no chance!!best
This knowledge is sold for millions
Do give this man a like👍🏻 for which too he never asked for 😊
1
for i in range(1,101):
if(i%3!=0) and (i%5!=0):
print(i)
2
for i in range(4):
print("#####")
bro u have to do by using while loop not FOR LOOP.
@@baigantv7372 I got that
2nd question answer :
n = 1
while n
@@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.
invalid syntax
Sir your playlist on Core Java is great where everything is organised very well. Hope you will do the same for python!
The most amazing teacher!
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
The way you teach is speechless........ Never before ever after classes.. Superb ❤thanks a lot sir😊
i=1
while i
i=1
while i
Bro u must specify increment/decrement for while loop
@@technologytipsofficial367 no you're actually incrementing the value of i twice
@@samuelbethanapudi3396 but check my program and excute it bro output will come
@@technologytipsofficial367 it skipping one value
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.
Only me who is here after 5 years😌?
im
you are the best teacher of programming.I just feel that i am doing a paid 5 star course.Carry on
i had a hard time with while loops and you made it so simple, thank you Navin!!
Woowww Seriously I want to learn like that who can solve and things with debugging.
1. Code to print numbers from 1 to 100, skip numbers which are divisible by 3 and 5
i = 1
while i
for 1 question
i=1
while i
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')
"This is not difficult" your teaching and explanation is very clear, thanks you god. You alive in telusuko heart@telusuko
Hello Sir! Your efforts and energy level are superb. Thanks for helping us. Really appreciable. God Bless You Sir :-)
i = 1
while i
sir love u,, ur excitement in coding makes me excited too
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()
Hi
love u sir.... i,ve just wached ur video for 2:33 and started feeling better
Hey we can also do that by the following code.
a = 1
while a
yes i agree
instead of a = a + 1 you can use a+=1
@@hakdokhakdok195 yes short hand notation
Yes
@Syed Zakiullah while loop is also used... 🙄 In the upper coding
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
In the first question, i = i + 1 not i = i + 3
the first question is still not working with me, it outputs nothing
i=100
while i>0:
if i%3!==0 and i%5!==0:
print(i)
i=i-1
Put == in place of =
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!
1.
a=1
while a= 1 and a % 5 >= 1:
print(a)
a=a+1
2.
j=1
while j
1st problem:
i=0
while i
You've written i+=1 two times. It leads to miscounting and the output starts from 2 and not 1.
There should be "AND" not "OR" in if statement
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
his tutorails are beginner friendly
Thanks a lot sir.. It really helped me alot...
I need to call you:
you are the best teacher i have seen in my life.
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