I've 2 years of experience in python development. Even though I know a lot. I watch all of Harry bhai's videos and love the way he explains. Good job Harry Bhai 👍
@@rajibsant9741 Mery bhai mene MBA kia hai or mein programing seekh raha hn jb mein seekh skta hn to ap mujh sy kafi choty ho apki picking power mery sy zyada hai practice zyada sy zyada karo or jxt ek programing language par focus karo
@@Sioslayer there was nothing but the my room was on top floor and because of summer 🌞 due to high temperature, room temperature was too hot 🥵 so ants usually get inside laptop 😔💻 and does even come out later 😭
I am not from IT, 30 years exp in Maintenance department (Mechanical Engineering) I have learned coding Python from Harry ( as well others ! )... thanks Harry!
9:13s, I heard this story for the second time, in the last video of Python. And yes I have also used this many times but in winters when I go to the mountains.Then I did it to warm up the computer. It helps to heat up many computers.👍🏻👍🏻👍🏻
Harry Sir, I'm right now in class 9th and i have extreme intrest in computers and i want to work for Google or Microsoft in the future, so i am learning web dev and python since class 8. I've made a fully functional chess ai in python on my own and a portfolio website. My question is, Is this the right time to do all this?
Day 4 of #100DaysOfCode. Today in this video 18, I learned about Python's while loops, which execute statements as long as a condition is true, and how to use else statements with them. I also explored emulating do-while loops using an infinite while loop and a break statement with an if condition, ensuring the loop body executes at least once. Thank You Harry Bhaiya.
i'm new at coding or aapne kaha the koi bhi biginner seekh sakta h lekin for loop wale me mujhe last wala nhi samajh aaya ager mujhe uska solution dekhne ke liye kissi or ke videos dekhne hote to mai aapke videos kyu follow kerta ..plzz bhaiya videos ko ye dhyan me rakhker banaiye ki ekdum biginner sab kuchh samjh jaye ....mujhe aapka teaching style bahut pasand aaya h i hope ki aap iss per kaam krnge ...thank uhh bhaiya for doing this free for us ....love from lucknow
I have learned many things from and still I just want to learn more things from you whatever you teach us is the easiest way to make us understand that's why I love to watch your videos.
do..while is a loop in which a set of instructions will execute at least once (irrespective of the condition) and then the repetition of loop's body will depend on the condition passed at the end of the while loop. It is also known as an exit-controlled loop.
With the break statement we can stop the loop even if the while condition is true With the continue statement we can stop the current iteration, and continue with the next With the else statement we can run a block of code once when the while condition no longer is true
Following is an example of using combination of while loop and break statement as do while loop in python. i = 10 while (True): print(i) i = i+1 if i>10: break
In case of decrementing while loop where we don't need to print 0 we can simply write --- while i : print(i) i = i-1 in case of C,we could write while(i--){ printf("%d",i); } Given we need to initialize i as 6 instead of 5
in while loop, always give a variable first, second give a condition which is true at the start of the loop, third put the command in the loop, fourth within the loop convert the condition into false.
i wrote this program with for loop it can print any table of number input by user intro = " Table Writer Program " print(intro.center(50, "*")) n = int(input("Enter NUmber: ")) for i in range(n, 11*n, n): print(i)
I am doing 8=10 lectures easily daily. hope to finish in 10 days all 100 lectures. So interesting. Thak you Harry. I am a Professor Of Medicine. MD Medicine but i will make good use of this programming knowledge and have already made scripts to manage pt data, medical records, pharmacy etc using php n mysql. Now will try to do the same using python. jango and flask look daunting to me right now, but i am ready to work hard and dont get tired sitting n codign for 12-14 hrs daily. Just love it. Thanks for being such a good tacher n giving all this away for free. We r giving u a lot of yt watch hrs :D
While loop requires initiating a variable. then while statement. a condition inside the while loop which makes while loop stop. Else can also be added at the ended. Do while loop is not available in python. Syntax variable=0 while(variable condition): statement to make condition false. else we can make a do while loop in python as well.
I hav a doubt plz solve Ques.- Write a program to display all the integers from 1 up to and including some integer entered by the user followed by a list of each number's prime factors. Number greater than 1 that only have a single factor will be marked as prime. For example, if the user enter 10 then the output of the program should be : Enter the maximum value to display : 10 1=1 2=2 (prime) 3=3(prime) 4=2*2 5=5(prime) 6=2*3 7=7(prime) 8=2*2*2 9=3*3 10=2*5
Well it's easy You can 1st take the user input and store it in a variable , say n Then use the for loop with 1 as the start value and n as your step value Further , inside the for loop , you can use the if-else statement In the if part , you can check if it's prime or not & then write a print statement according to what you want as the output
But it will be better if you define a function already for the prime number and then check it , it will save your time also & will help you while writing down the factors :)
The loop starst from 1 then it prints the 3 number and it leaves the third number and prints 4 ,likewise it iterates every third number between 1 to 12
One could be an excellent programmer but that doesnt mean he will be a good teacher as well. Harry bhai has both the skills which makes him an extra ordinary teacher, keep up the good work!!!.
My practice solution #Decrementing while loop i = 5 while (i > 0): print(i) i = i -1 else: print("Happy New Year") #Increment while loop y = 1 while (y 0: break
@CodeWithHarry bro, I am new to programming and here is what I did to print the table of 3 i = 0 k = 0 while i < 32: while k < 11: print("3 * ", k ,"=" ,i) i= i+3 k= k+1
yeah that is right but you can do it in easier by by using for loop like this print("The table of 3 is:- ") k=1 for i in range(3,30+1,3): print("3 *",k,"= ",i) k=k+1
Harry Bhai Core Java k course le ke aao ek vedio banado... Wipro training period m sikhne ko bola h project m lgenge Java.. but study source nhi mil rha koi acha... Tum banado plz bhaiya next week m 😊❤️
a = int(input("Enter Number: ")) b = int(input("Till?: ")) b = b - 1 print(a) c = a while(b>0): c = c + a b = b - 1 print(c) this is a code which gives the table of a number for example, I want the table of 2 till 2x10 I will put 2 in a, and 10 in b and, it will give me the table of 2 till 2x10 i.e. 20
question - how to emulate a do-while loop in python ans - while True: number = int(input("Enter a positive number : ")) print(number) if not number > 0: break print("done with emulation")
Using while loops, I was able to create a calculator that could not broken no matter what input the user enters into the program. I commented out the case _ as it was no longer required in the program. The calculator also run infinitely until exited out by the user. condition = "l" while condition != "exit": x = (input(" Enter a number: ")) while not x.isnumeric(): print( " This is a calculator, please enter the number you want to calculate with." ) x = (input(" Enter a number: ")) x = float(x) y = input(""" Enter your function 1 for addition, 2 for subtraction, 3 for multiplication, 4 for division: """) while not y.isnumeric() or int(y) > 4 or int(y) < 1: print(" Please only enter the numbers 1, 2, 3, or 4") y = input(""" Enter your function 1 for addition, 2 for subtraction, 3 for multiplication, 4 for division: """) y = int(y) z = (input(" Enter your second number: ")) while not z.isnumeric(): print(""" This is a calculator. please enter the second number you want to calculate with.""") z = (input(" Enter your second number: ")) z = float(z) match y: case 1: print(" The sum of", x, "+", z, "is", x + z) case 2: print(" The difference of", x, "-", z, "is", x - z) case 3: print(" The product of", x, "x", z, "is", x * z) case 4: if z == 0: print(" Can not divide by zero") else: print(" The quotient of", x, "/", z, "is", x / z) # case _: # print(" Invalid function. Please run the code again and enter a valid function") condition = input( " Enter exit to stop the program or press enter to continue: ") condition = condition.lower()
Dude, your teaching is brilliant. Talking about something else I really enjoy the way you say "bahut" 😂. It has stuck in my mind and now I also say it the same way 😄
Instead of writing, count = count + 1/ count = count - 1 we could also write count +=1/ count -=1 #it basically means the same thing, its just an easier way of writing it.🤗
Boss I came back to this video for revision. One thing I really want to know is what is the shortcut Key u r using after selecting a chuck of code and commenting it out with a single button? Thank you
answers=['east','islamabad'] q1=input('where does the sun rises= ') q2 = input('what is the capital of pakistan= ') prize=100 while q1 in answers and q2 in answers: print('Both answers are right and you wont',prize*2) break while q1 in answers and q2 not in answers: print('one is right and one wrong so you won ',prize) break while q1 not in answers and q2 in answers: print('one is right and one wrong so you won ',prize) break while q1 not in answers and q2 not in answers: print('Both the answers are wrong so you won ',prize*0) break
I tried this as a password project character have to be more than 8 and it work if password is less than it shows weak password again enter it Itss great
Harry bhai , 2 years ago I discovered your another channel where your were teaching physics ...but I Forget about that now .... Pls give the link for that channel pls I need it ......
print("""Do you want to use calculator? Press 1 to 9 for YES Press 0 for NO""") a = int(input()) while a: welcome = "welcome to calculator world" print(welcome.title()) a = int(input("Enter the first number: ")) b = int(input("Enter the Second number: ")) x = int(input("""1. Enter 1 for add 2. Enter 2 for Sub 3. Enter 3 for Div 4. Enter 4 for Mul """)) match x: case 1: c = a + b print ("Add is: ", c) case 2: c = a - b print ("Sub is: ", c) case 3: c = a / b print ("Div is: ", c) case 4: c = a * b print ("Mul is: ", c) case _: print("Enter the correct option") print("""Still do you want to use calculator? Press 1 to 9 for YES Press 0 for NO""") a = int(input()) else: print("I respect your decision")
Sir i have a doubt... If the condition in while loop is wrong, it is executed once and then end the loop. Why it executes once?? Why don't it just exit from the loop??
num = int(input("Enter a number (greater than 0) : ")) getName = input("Enter your name : ") for num in range(num): if(num%2==0): print("Hi", getName) else: print("I Love You💝!")
bro program dekho user input lene ke directly baad print(i) hai fhir loop ke bahar aata hai toh pehle print hoga fir condition check karega ki condition true hai ya nahi
I've 2 years of experience in python development. Even though I know a lot. I watch all of Harry bhai's videos and love the way he explains. Good job Harry Bhai 👍
Love bhaai
Help me sir how I start my journey
I am 1st year it student
After read any programing language I forget it
🙏✊
@@rajibsant9741 same here
@@rajibsant9741 Mery bhai mene MBA kia hai or mein programing seekh raha hn jb mein seekh skta hn to ap mujh sy kafi choty ho apki picking power mery sy zyada hai practice zyada sy zyada karo or jxt ek programing language par focus karo
@@umerkhan-kv9gd ok
Day #18 done! The story of the ants was pretty interesting 😆
It has happened to my laptop a few times in June-July. 🤣🤣
@@DeepakKumar-mb2lw what was on the laptop that made ants to come? 🤔
@@Sioslayer there was nothing but the my room was on top floor and because of summer 🌞 due to high temperature, room temperature was too hot 🥵 so ants usually get inside laptop 😔💻 and does even come out later 😭
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
Day 18
Moye more
🤣🤣 Bhai, honestly, chitiya (ants) ka example bahot hi achcha that.. learning with fun.
Hats off to you sir ji 🤠
Is line ko comments per dhundne aya tha,,,Apka comment sa dil khush ho gaya,,,,
9:27 😂
I am not from IT, 30 years exp in Maintenance department (Mechanical Engineering) I have learned coding Python from Harry ( as well others ! )... thanks Harry!
so still what you do ?
@RUBAB KHAN Working with manufacturing company.
I am From mechanical engineering sir
Bro kya karna padega mechanical engineer ban ne ke liye
@@Amar-yaduvanshi23 mechanical engineering ki exam pass karni padegi bhai🤣🤣🤣
9:13s, I heard this story for the second time, in the last video of Python. And yes I have also used this many times but in winters when I go to the mountains.Then I did it to warm up the computer. It helps to heat up many computers.👍🏻👍🏻👍🏻
Harry Sir, I'm right now in class 9th and i have extreme intrest in computers and i want to work for Google or Microsoft in the future, so i am learning web dev and python since class 8. I've made a fully functional chess ai in python on my own and a portfolio website. My question is, Is this the right time to do all this?
yep bro me too starting at your age
Keep your mathematics really strong it will help you a lot
Day 4 of #100DaysOfCode. Today in this video 18, I learned about Python's while loops, which execute statements as long as a condition is true, and how to use else statements with them. I also explored emulating do-while loops using an infinite while loop and a break statement with an if condition, ensuring the loop body executes at least once.
Thank You Harry Bhaiya.
Truly commendable playlist, completely understood python.
sir aapki old videos bahot help karti hai mai full stack web devoloper hu
i'm new at coding or aapne kaha the koi bhi biginner seekh sakta h lekin for loop wale me mujhe last wala nhi samajh aaya ager mujhe uska solution dekhne ke liye kissi or ke videos dekhne hote to mai aapke videos kyu follow kerta ..plzz bhaiya videos ko ye dhyan me rakhker banaiye ki ekdum biginner sab kuchh samjh jaye ....mujhe aapka teaching style bahut pasand aaya h i hope ki aap iss per kaam krnge ...thank uhh bhaiya for doing this free for us ....love from lucknow
I was inconsistent for a few days but yesterday I covered all that up. And now i am all caught up. :)
I have learned many things from and still I just want to learn more things from you whatever you teach us is the easiest way to make us understand that's why I love to watch your videos.
do..while is a loop in which a set of instructions will execute at least once (irrespective of the condition) and then the repetition of loop's body will depend on the condition passed at the end of the while loop. It is also known as an exit-controlled loop.
With the break statement we can stop the loop even if the while condition is true
With the continue statement we can stop the current iteration, and continue with the next
With the else statement we can run a block of code once when the while condition no longer is true
Following is an example of using combination of while loop and break statement as do while loop in python.
i = 10
while (True):
print(i)
i = i+1
if i>10:
break
In case of decrementing while loop where we don't need to print 0 we can simply write ---
while i :
print(i)
i = i-1
in case of C,we could write
while(i--){
printf("%d",i);
}
Given we need to initialize i as 6 instead of 5
10:43
in while loop, always give a variable first,
second give a condition which is true at the start of the loop,
third put the command in the loop,
fourth within the loop convert the condition into false.
Day 18 Done 🔥🔥, Amazing video harry bhai the way you teach us we loved that Thank you so much for being our Harry Bhai & Teacher ❤❤🙌🙌
Harry bhai please make a detailed Android course series like this. btw gr8 content & love you 💖❤️
make video for web 3
i wrote this program with for loop it can print any table of number input by user
intro = " Table Writer Program "
print(intro.center(50, "*"))
n = int(input("Enter NUmber: "))
for i in range(n, 11*n, n):
print(i)
print ("Table Writer Program".center(50, "*"))
n = int(input("enter bich: "))
for i in range(11):
print ( n , "x" , i, "=", n * i )
I am doing 8=10 lectures easily daily. hope to finish in 10 days all 100 lectures. So interesting. Thak you Harry. I am a Professor Of Medicine. MD Medicine but i will make good use of this programming knowledge and have already made scripts to manage pt data, medical records, pharmacy etc using php n mysql. Now will try to do the same using python. jango and flask look daunting to me right now, but i am ready to work hard and dont get tired sitting n codign for 12-14 hrs daily. Just love it. Thanks for being such a good tacher n giving all this away for free. We r giving u a lot of yt watch hrs :D
While loop requires initiating a variable. then while statement. a condition inside the while loop which makes while loop stop. Else can also be added at the ended. Do while loop is not available in python.
Syntax
variable=0
while(variable condition):
statement to make condition false.
else
we can make a do while loop in python as well.
hey ...that hack about getting rid of ants using a while loop ... ! truly genius bro !
Thank you Harry Bhai for these videos. It really help me alot
i=0
while(i
I hav a doubt plz solve
Ques.- Write a program to display all the integers from 1 up to and including some integer entered by the user followed by a list of each number's prime factors. Number greater than 1 that only have a single factor will be marked as prime.
For example, if the user enter 10 then the output of the program should be :
Enter the maximum value to display : 10
1=1
2=2 (prime)
3=3(prime)
4=2*2
5=5(prime)
6=2*3
7=7(prime)
8=2*2*2
9=3*3
10=2*5
Interesting question
Wait I'll try this after I'm done with watching the video
Well it's easy
You can 1st take the user input and store it in a variable , say n
Then use the for loop with 1 as the start value and n as your step value
Further , inside the for loop , you can use the if-else statement
In the if part , you can check if it's prime or not & then write a print statement according to what you want as the output
But it will be better if you define a function already for the prime number and then check it , it will save your time also & will help you while writing down the factors :)
@@nanhakachua863 problem in checking prime no.?😔🤔
And also how i will factor them
The loop starst from 1 then it prints the 3 number and it leaves the third number and prints 4 ,likewise it iterates every third number between 1 to 12
One could be an excellent programmer but that doesnt mean he will be a good teacher as well.
Harry bhai has both the skills which makes him an extra ordinary teacher, keep up the good work!!!.
My practice solution
#Decrementing while loop
i = 5
while (i > 0):
print(i)
i = i -1
else:
print("Happy New Year")
#Increment while loop
y = 1
while (y 0:
break
day 18, things are getting difficult, slowly but definitely, hope i get through these 100 days
while True:
number = int(input("enter the value of number:= "))
print(number)
if not number > 10:
break;
for loop in range(4):
print(2)
a=int(input("ENTER YOUR NUMBER HERE: "))
while (a
@CodeWithHarry bro, I am new to programming and here is what I did to print the table of 3
i = 0
k = 0
while i < 32:
while k < 11:
print("3 * ", k ,"=" ,i)
i= i+3
k= k+1
yeah that is right but you can do it in easier by by using for loop like this
print("The table of 3 is:-
")
k=1
for i in range(3,30+1,3):
print("3 *",k,"= ",i)
k=k+1
# number multiplication order program till 10:
a = 1
b = int(input("enter number :"))
while (a < 11):
print(a,"*",b,"=",a*b)
a = a + 1
Harry Bhai Core Java k course le ke aao ek vedio banado... Wipro training period m sikhne ko bola h project m lgenge Java.. but study source nhi mil rha koi acha... Tum banado plz bhaiya next week m 😊❤️
# table
Number = int(input("Enter number"))
i=1
while i
a = int(input("Enter Number: "))
b = int(input("Till?: "))
b = b - 1
print(a)
c = a
while(b>0):
c = c + a
b = b - 1
print(c)
this is a code which gives the table of a number
for example, I want the table of 2 till 2x10
I will put 2 in a, and 10 in b and, it will give me the table of 2 till 2x10 i.e. 20
#Day 18 in 100DaysOfCode. Maintaining consistency is a difficult thing.
indeed... but we have 2 if we want 2 outstand the crowd.
question - how to emulate a do-while loop in python
ans -
while True:
number = int(input("Enter a positive number :
"))
print(number)
if not number > 0:
break
print("done with emulation")
Bhai tera code tab tak chalta rahega jab tak negetive value nahi dalega tho kya fayda?
But well try though👍
Thanks for this ultimate course ❤❤
Using while loops, I was able to create a calculator that could not broken no matter what input the user enters into the program.
I commented out the case _ as it was no longer required in the program. The calculator also run infinitely until exited out by the user.
condition = "l"
while condition != "exit":
x = (input("
Enter a number: "))
while not x.isnumeric():
print(
"
This is a calculator, please enter the number you want to calculate with."
)
x = (input("
Enter a number: "))
x = float(x)
y = input("""
Enter your function
1 for addition,
2 for subtraction,
3 for multiplication,
4 for division: """)
while not y.isnumeric() or int(y) > 4 or int(y) < 1:
print("
Please only enter the numbers 1, 2, 3, or 4")
y = input("""
Enter your function
1 for addition,
2 for subtraction,
3 for multiplication,
4 for division: """)
y = int(y)
z = (input("
Enter your second number: "))
while not z.isnumeric():
print("""
This is a calculator.
please enter the second number you want to calculate with.""")
z = (input("
Enter your second number: "))
z = float(z)
match y:
case 1:
print("
The sum of", x, "+", z, "is", x + z)
case 2:
print("
The difference of", x, "-", z, "is", x - z)
case 3:
print("
The product of", x, "x", z, "is", x * z)
case 4:
if z == 0:
print("
Can not divide by zero")
else:
print("
The quotient of", x, "/", z, "is", x / z)
# case _:
# print("
Invalid function.
Please run the code again and enter a valid function")
condition = input(
"
Enter exit to stop the program or press enter to continue: ")
condition = condition.lower()
bhot easy kr diya h apne learning hamare liye thank you so much for helping us......😇
Dude, your teaching is brilliant. Talking about something else I really enjoy the way you say "bahut" 😂. It has stuck in my mind and now I also say it the same way 😄
Instead of writing, count = count + 1/ count = count - 1
we could also write count +=1/ count -=1
#it basically means the same thing, its just an easier way of writing it.🤗
Count waale me straight away else execute hoga, kyunki - value badti rahegi aur aise loop condition meet nahi hogi to sidha else execute hoga.
10:33
Else statement will execute because -5 is less than 0
this is my implication of do while, what do u guys think?
i = int(input())
count = 0
while i < 7 or count == 0:
print(i)
count += 1
i += 1
@CodeWithHarry agar aapne value count= count-1 agar 5 dali to else execute hoga bro
i = 0
while(i == 0):
print(i)
while(i>0):
print("this number is more than i")
i = i+1
Is this right way to emulate do while in Python??
Harry bhai you are great man❤️
Boss I came back to this video for revision. One thing I really want to know is what is the shortcut Key u r using after selecting a chuck of code and commenting it out with a single button? Thank you
Ctrl + /
Harry sir! Great love from Pakistan ❤
amazing harry bhai
answers=['east','islamabad']
q1=input('where does the sun rises= ')
q2 = input('what is the capital of pakistan= ')
prize=100
while q1 in answers and q2 in answers:
print('Both answers are right and you wont',prize*2)
break
while q1 in answers and q2 not in answers:
print('one is right and one wrong so you won ',prize)
break
while q1 not in answers and q2 in answers:
print('one is right and one wrong so you won ',prize)
break
while q1 not in answers and q2 not in answers:
print('Both the answers are wrong so you won ',prize*0)
break
Nice piece of coding❤
number = int(input("Enter a positive number: "))
while True:
print(number)
if not number > 0:
break
is this correct?
Kindly make a video of Roadmap of Data Analyst
Good evening sir thank you for this video
value=int(input("enter two digit value:"))
print("value is not in two digit",value)
while(value
For step if we input (1,12,2)then out will 1+2=4
Then 4+2=6
That the use
Break is a termination of loop
Continue is a skip current execution
I tried this as a password project character have to be more than 8 and it work if password is less than it shows weak password again enter it
Itss great
while loop
done with day 18, understood the function of while loop
Harry bhai , 2 years ago I discovered your another channel where your were teaching physics ...but I Forget about that now ....
Pls give the link for that channel pls
I need it ......
Harry bhai, could you make a fresh new course of java ??
aapky is new course se mujhy loops samah ay hen purane se nhi arahe the 😂shukar hai mai bhi loop kr k aapki video p hi aaya
Thank you for free python course
make video for web 3
Hii harry bhai please provide notes as well in pdf formate which is very helpfull for us & you are doing a great Sirji @CodeWithHarry
bhai sab paka pakaya khaega kya, videos me notes bi toh diya hu h, pause kar ke khud bi bana sakta h
Day 18 done ✅
Hi, finally i have covered all past videos.
a=int(input("enter any no yoy want to make table="))
b=1
print("this is your table")
while(b
Thankss man good code
print("""Do you want to use calculator?
Press 1 to 9 for YES
Press 0 for NO""")
a = int(input())
while a:
welcome = "welcome to calculator world"
print(welcome.title())
a = int(input("Enter the first number: "))
b = int(input("Enter the Second number: "))
x = int(input("""1. Enter 1 for add
2. Enter 2 for Sub
3. Enter 3 for Div
4. Enter 4 for Mul
"""))
match x:
case 1:
c = a + b
print ("Add is: ", c)
case 2:
c = a - b
print ("Sub is: ", c)
case 3:
c = a / b
print ("Div is: ", c)
case 4:
c = a * b
print ("Mul is: ", c)
case _:
print("Enter the correct option")
print("""Still do you want to use calculator?
Press 1 to 9 for YES
Press 0 for NO""")
a = int(input())
else:
print("I respect your decision")
Bhaiya Namaste
Ap pls Tensor flow module par ek playlist banao RUclips par aag laga jaegi
10:35 Else execute hoga kyuki wo loop sae bahar ayega
Sir i have a doubt...
If the condition in while loop is wrong, it is executed once and then end the loop. Why it executes once??
Why don't it just exit from the loop??
This course is awesome 🔥🔥
10:30 else execute hoga -5 is not greater than 0 so the interpreter will run the else condition
Thank you for this course
Your video is very helpfull for me
LOVE YOU HARRY BHAI❤
Day - 18 Completed😍
The else condition will also print along with while loop
num = int(input("Enter a number (greater than 0) : "))
getName = input("Enter your name : ")
for num in range(num):
if(num%2==0):
print("Hi", getName)
else:
print("I Love You💝!")
DOUBT🚨🚨🚨 5:35 why did the 'i' get printed? it was inside the 'while' function so it shouldn't have been printed right?
12:47 do while loop मतलब पहले इस्तेमाल करो फिर,,,,, ।first you do ,then the confition ,if condition not match then dont do
n = int(input("Enter a number: "))
i = 1
while i
completed day 18..ordered a same python hoodie what u wear..
You can use thonny for debugging
Day 18✨
hi what's your class level?
@@nirrawal5265 11th
@@nirrawal5265 11th
Can you please start a tutorial series for Arduino?
Thank you sir ❤️❤️
harry yrr You are teaching very well.
if we will use else in while loop else will be executed whether it enters while loop or not.
Your videos are awesome 😎
yes sir else is executed because the loop is out or its output is false
Par harry bhai 98 to 38 se greater tha to condition false hui to direct done with the loop print hona chahiye tha na instead of printing i also???
Same question
Bro itna observation skill hai toh aap ye computer programing kyu kar rahe ho detective ban jao
bro program dekho user input lene ke directly baad print(i) hai fhir loop ke bahar aata hai toh pehle print hoga fir condition check karega ki condition true hai ya nahi
very useful for my school parctile
Num = 0
num2 =10
while (Num
Didn't try in code but..Do While loop in python:-
i = True
a = 1
while i :
print(a)
a = a+1
if a>5:
i = False
Current me if I'm wrong
Yes you are wrong
thanks
hello
You also told that college story in Java Course.