e_count=0 o_count=0 a=int(input("entre the value of a:")) b=int(input("entre the value of b:")) for i in range(a,b): if(i%2==0): e_count=e_count+1 else: o_count=o_count+1 print("no. of add number:", o_count) print("no. of even number:", e_count)
We can go with this as well, for i in range(2, 11, 2): print(i), however you have not yet introduced step function, so for "for" loop may be an initial alternative basic code for even number:
Program:4 count=0 for i in range (1, 11): if(i%2==0): count=count+1 print("even", count) count=0 for i in range (1, 11): if(i%2==1): count=count+1 print("odd", count) Intha method use panna out put even 5 odd 5
there are 20 numbers divisible by 5 and 33 numbers divisible by 3 so the total numbers which are divisible by both 3 and 5 between 1 to 100 are 20+33=53 numbers. so 53 numbers are there which are divisible by both by 3 and 5 and the numbers are between 1 to 100.
count = 0 e_count = 0 for i in range (1,11): if i%2!=0: count=count+1 print("Number of odds : ", count) for i in range (1,11): if i%2==0: e_count=e_count+1 print("Number of even : ", e_count)
count_div_3 = 0 count_div_5 = 0 for i in range(1,101): if i%3==0 and i%5==0: count_div_3= count_div_3 + 1 count_div_5= count_div_5 + 1 print("divisibles of 3:",count_div_3) print("divisibles of 5:",count_div_5)
Sir inda python la neenga upload panna 27 videos and inda series sa mudichita learn pannita namma resume la python developer nu add pannikalama sir certificate ilama pls tell me
@ErrorMakesClever bro is this correct?Please tell '''Count the number of odd and even number between 1 and 10 and print it''' count = 0 count1 = 0 for i in range(1,11): if i % 2 == 0: count = count + 1 if i % 2 != 0: count1 = count1 + 1 print("Even =",count) print("Odd =",count1)
even_count=0 odd_count=0 for i in range (1,11): if i%2==0 : print(i) even_count= even_count+1 print ("total even numbers:", even_count) for i in range (1,11): if i%2 != 0 : print(i) odd_count= odd_count+1 print ("total odd numbers:", odd_count)
Please note that when u say count the even numbers between 1 and 10, the actual answer is 4 as 10 is not included. So when you code You have to code like: for i in range(1,10) You should not code like: for i in range(1,11)
a=1 b=101 i=0 f_count=0 for i in range(a,b): if i%3==0: print(i) if i%5==0: f_count=f_count+1 print(f_count) for th above code i got answers 100 and 21 i don know what happens in i%5 part b'caz i change only i%3 part out the output of i%5 part is giving wrong answer can you explain why?
div_count=0 not_div_count=0 a=int(input("entre the value of a:")) b=int(input("entre the value of b:")) for i in range(a,b): if(i%3==0 and i%5==0): div_count=div_count+1 else: not_div_count=not_div_count+1 print("Not divisible by both 3 and 5:", not_div_count) print("divisible by both 3 and 5:", div_count) a=1; b=101
Anna nan 10th finish pannitu mechanical engineering mudichtan ippo it field la work panunna python course padicha matum podhuma anna😢pls na reply. Illa na Be csc finish pananuma🧐
ஹாய் ப்ரோ உங்க வீடியோ பாத்து தான் கத்திகிட்டேன் இதே லூப் வீடியோக்கு எப்டியெல்லாம் எழுதாலாம்னு நான் முயற்சி பண்ணத பாருங்க ஓகே வும் ஆகுது a=int(input("Enter A:")) b=int(input("Enter B:")) for i in range(a,b): print(i) E_count=0 O_count=0 for i in range(a,b): if(i%2==0): E_count=E_count+1 O_count=O_count+1 print("Even Number=",E_count) print("Odd Number=",O_count) Enter A:1 Enter B:11 1 2 3 4 5 6 7 8 9 10 Even Number= 5 Odd Number= 5 [Program finished]
6 months uh Ethu etho video lam pathu last la namaku coding lam varathu pola nu think pana apo......verum 6 videos la confidence uh koduthuteenga❤❤❤❤
same feeling bro
e_count=0
o_count=0
a=int(input("entre the value of a:"))
b=int(input("entre the value of b:"))
for i in range(a,b):
if(i%2==0):
e_count=e_count+1
else:
o_count=o_count+1
print("no. of add number:", o_count)
print("no. of even number:", e_count)
Sir small request... Intha question ella pdf ah description la post panna romba usefull ah irukum🥺
Bro, UI/UX kum nennga videos ithu mari upload pannaunga plz...
Keep 🤘 rocking bro... Your teaching method is so good... Don't stop it..
Anna ... All python chapters uploaded pannunga .help me my job
We can go with this as well, for i in range(2, 11, 2):
print(i), however you have not yet introduced step function, so for "for" loop may be an initial alternative basic code for even number:
e_count=0
o_count=0
for i in range(1,11):
if(i%2==0):
e_count=e_count+1
if(i%2!=0):
o_count=o_count+1
print("Even :", e_count)
print("Odd :", o_count)
Ella numberum 1 alla divide ana remainder 0 tha bro varum
Annanuku oru oothappamm
Cound=0
For i in range (1,5):
If(i%2==0):
Cound=cound+1
If(i%2):
Cound=cound+1
Print(cound)
Print(cound)
Program:4
count=0
for i in range (1, 11):
if(i%2==0):
count=count+1
print("even", count)
count=0
for i in range (1, 11):
if(i%2==1):
count=count+1
print("odd", count)
Intha method use panna out put
even 5
odd 5
Cound=0
For i in range (1,5):
If(i%2==0):
Cound=cound+1
If(i%2):
Cound=cound+1
Print(cound)
Print(cound)
Super explanation Agnel John anna ......keep it up .......keep rocking..........waiting for your upcoming videos
Evalvu clear ah yaralum solitharamudiyathu bro.thnq
You're most welcome
Correct 💯 bro
in for loop example for i in range (1,5).....we can get range from 1 to 4 only so the value will not reach upto 5
there are 20 numbers divisible by 5 and 33 numbers divisible by 3 so the total numbers which are divisible by both 3 and 5 between 1 to 100 are 20+33=53 numbers. so 53 numbers are there which are divisible by both by 3 and 5 and the numbers are between 1 to 100.
Enaku intha doubt thaa vanthuchii
But yen EMC bro i%3==0 pottarunu puriyala
Hi bro..Explain pandrathu romba Athiga neram edukarenga..Code laiye Clear a puriyara Simple questions ku kamiya explaination kudutha nalla irukum..Romba neram Explain panitae iruntha Confuse aguthu
i=0
for Numbers in range(1,101):
if(Numbers%3==0 and Numbers%5==0):
i=i+1
print("Divisible by 3n5 is",Numbers,"and it's count is",i)
Count the number of odd number between 1 and 10..
Count=0
for i in range(1,11):
if(i%2==0):
Count=count
else:
Count=count+1
Print(count)
Nice teaching bro🤓
#print even number between the given numbers.
a=int(input("Enter a : "))
b=int(input("Enter b : "))
if(a
count = 0
e_count = 0
for i in range (1,11):
if i%2!=0:
count=count+1
print("Number of odds : ", count)
for i in range (1,11):
if i%2==0:
e_count=e_count+1
print("Number of even : ", e_count)
Good Explanation❤
Bro (1,5)
4 varaiku thaana check aaagum neenga yen 5 yu chech panreenga
Clear explanation ❤😊
Anna neeninga vera leval 👍🏻
Thanks!!
count_div_3 = 0
count_div_5 = 0
for i in range(1,101):
if i%3==0 and i%5==0:
count_div_3= count_div_3 + 1
count_div_5= count_div_5 + 1
print("divisibles of 3:",count_div_3)
print("divisibles of 5:",count_div_5)
count=0
for i in range(1,11):
if(i%2 or 1==0):
count=count+1
print("Even :",count)
print("Odd :",count)
Bro ipdi podalama??
Wrong
Thanks for yr clear explainations.. Keep going bro
Bro neenga 8+1 nu print panradhu ku bathila direct 9 nu print pannalam la bro ???
#print 1to10 even number
for i in range(0,11,2):
print(i)
Efficiency
Super bro clear explanation
Thank you
congratulations for 400k subscriber
Sir inda python la neenga upload panna 27 videos and inda series sa mudichita learn pannita namma resume la python developer nu add pannikalama sir certificate ilama pls tell me
SKILL is more important than a Certificate.
for i in range(1,6):
print(i*2)
Bro count arambikumbothu 3rd question sollama, directa count kulla poiringa nu nenaikuren ,konjam confuse aguthu.kindly mention the timing for 3rd question in count,Na scroll panni pathen enaku neenga question 3 vanthu sollama aramuchamari theriuthu.
Bro,
Count=0
For i in range(1,5):
if(i%2==0): ithula 2 & 4 kidaikum
count=count+1 (ipdi kukum pothu count kitta ippo 2&4 aathavathu count kitta ippo 2numbers iruku appo, count=2+1 appo nammaku ans 3 thaana bro varanum)
When i=2=> Count=count+1 (count=0+1) Now count value is 1
When i=4=> count=count+1 (count =1+1)
Now count value is 2
Count =2 nu print agum.
Bro you're really a good tutor
I need solidity programming make it brother
Blockchain technology yae solli kudunga
@ErrorMakesClever bro is this correct?Please tell
'''Count the number of odd and even number between 1 and 10 and print it'''
count = 0
count1 = 0
for i in range(1,11):
if i % 2 == 0:
count = count + 1
if i % 2 != 0:
count1 = count1 + 1
print("Even =",count)
print("Odd =",count1)
Thank you bro ..na rampanerama etha try pannuna apm unga message paththu , podda answer vanthuruchi tq
@@anbuakanbuak3294 My pleasure😃
Hi bro. In the above video time: 24.37 - you mentioned like range(1,5) - In this case - it will take 1,2,3,4 but how you included 5. please explain.
It just a mistake bro , he did not notice it
Bro pls put some video about blockchain technology in detail
Bro web developing full tutorial podunga javascript and react js .
Anna str concatenate thana bro
Aprom yapadi for la use pannuriga
Online compiler error kattuthu bro
for i in range(1,6):
print(i*2)
"(For question No 2)"
Wrong method
Anna epadi forloop la odd numbers mattum print pandradhu?
Why did'nt you mentioned we can use ""else"" and ""if"" statement in ""for"" loop in the beginning of every exercise??. It made us so confused
even_count=0
odd_count=0
for i in range (1,11):
if i%2==0 :
print(i)
even_count= even_count+1
print ("total even numbers:", even_count)
for i in range (1,11):
if i%2 != 0 :
print(i)
odd_count= odd_count+1
print ("total odd numbers:", odd_count)
IDHA KANDUPUDIKARARDHUKULLA URIYAE POIDUCHU
Please note that when u say count the even numbers between 1 and 10, the actual answer is 4 as 10 is not included. So when you code
You have to code like:
for i in range(1,10)
You should not code like:
for i in range(1,11)
Cound=0
For i in range (1,5):
If(i%2==0):
Cound=cound+1
If(i%2):
Cound=cound+1
Print(cound)
Print(cound)
Do you get the output correct??@@johndirose1687
a=1
b=101
i=0
f_count=0
for i in range(a,b):
if i%3==0:
print(i)
if i%5==0:
f_count=f_count+1
print(f_count)
for th above code i got answers 100 and 21 i don know what happens in i%5 part b'caz i change only i%3 part out the output of i%5 part is giving wrong answer can you explain why?
div_count=0
not_div_count=0
a=int(input("entre the value of a:"))
b=int(input("entre the value of b:"))
for i in range(a,b):
if(i%3==0 and i%5==0):
div_count=div_count+1
else:
not_div_count=not_div_count+1
print("Not divisible by both 3 and 5:", not_div_count)
print("divisible by both 3 and 5:", div_count)
a=1; b=101
Super bro 🎉
anna odd even count edukura mari user input kuduthu odd even count edukanum ena na pannanum
For loop example ❤
bro 'print' ku tab space kudutha if ku ulla poguthu,tab kudukalena if vittu exit agiudhu😮
Bro python ellama cover pannunga brother
Hi numpy pandas scipy ku video podunga
Boro count value puriya matikuthu..😢
Bro 3rd que ku odd la syntax mattum epdinu sollunga
question 5 oda program correct ah bro
Thanks ❤
Tnx brow basic explain
Count kandu pudika len method use pana mudiyuma bro loop la 🤔
Oru string oda length or list oda length kandupudika use panlam bro. Namma problemsla use pana mudiadhu.
@@ErrorMakesClever ohhh ok ok Bro... Thank you .
Prime number epdi kandu pudikurathu
What will happen ,if I give count i statement
Anna 2nd yr bsc.cs padikuran ethavathu internship erundha sollunga na
Bro count = 0
Conut =count+1 na
0=0+1 thana varu
illa equalt ku munnadi irukura conut variable na
Conut =0
a = count+1
Print(a) ipdi kudukalama?
Count = nu podrapa adhu variableah dhan bro consider panikum. And neenga solra mari a=count+1 nu podalam. Apo neenga a=0 nu assign pananum first.
@@ErrorMakesClever ok bro 👍😊
Bro enaku count layee 1,2,3,4,5 nu output varuthu broo
Bro unga video pathu learn panna future la enaku job kedaikuma
Bro last problem la......entha number lam divide aguthu nu paaka mudium uh ?
After if statement Print(i) kudunga varum
Bro what is the meaning qnd use of in
Broo naa C++ language padichitu irukan bro ippotha intha nerathulaye unga tutorial paathu naa python nu padikalam laa illa venam ah bro
Confuse panikadheenga bro, edhavdhu onnula concentrate panunga podhum.
Y we cant use step (1,11,2)
Anna nan 10th finish pannitu mechanical engineering mudichtan ippo it field la work panunna python course padicha matum podhuma anna😢pls na reply. Illa na Be csc finish pananuma🧐
Pythonla strong aitu adhu reltedah projects irndha u can start applying for jobs bro.
@@ErrorMakesClever appo BE CSC panna teva illa ya anna
@@kabirahamed5601 BE already Mechanicala engg mudichteenga dhana ? Andha degreey podhum bro.
@@ErrorMakesClever illa na only diploma matum mudichirukan BE PADIKALA
Nerya companies Degree edhirpapanga bro. But some start up companies won’t expect. Neenga slill devwlop panni andha mari companieskula poita aprm endha companiesku venalum shift agika mudium.
Bro our doubt
Anna certificate irukka anna
😂😂
ஹாய் ப்ரோ
உங்க வீடியோ பாத்து தான் கத்திகிட்டேன்
இதே லூப் வீடியோக்கு எப்டியெல்லாம் எழுதாலாம்னு நான் முயற்சி பண்ணத பாருங்க ஓகே வும் ஆகுது
a=int(input("Enter A:"))
b=int(input("Enter B:"))
for i in range(a,b):
print(i)
E_count=0
O_count=0
for i in range(a,b):
if(i%2==0):
E_count=E_count+1
O_count=O_count+1
print("Even Number=",E_count)
print("Odd Number=",O_count)
Enter A:1
Enter B:11
1
2
3
4
5
6
7
8
9
10
Even Number= 5
Odd Number= 5
[Program finished]
for i in range(1,6):
print(i*2)