💥# 4.Homework str=input("Enter the string: ") vowels="aeiouAEIOU" vowel_count=0 for char in str: if char in vowels: vowel_count+=1 print(f"Number of vowels are: {vowel_count}")
# Write a for loop that prints all multiples of 3 between 1 and 30. for i in range(3,31,3): print(i) # Write a program using a for loop that calculates the sum of numbers from 1 to 10. total_sum = 0 for i in range(1,11): total_sum += i print(total_sum) # Write a program that takes your name as input and prints each letter of your name using a for loop. input_name=input("Enter a name >> ") for character in input_name: print(character) # Write a program that counts how many vowels are in a given string using a for loop. input_name=input("Enter a name >> ") vowels="aeiouAEIOU" count_char=0 for char in input_name: if char in vowels: count_char += 1 print(count_char)
Homework: 1.Write a for loop that prints all multiples of 3 between 1 and 30.
for i in range(3,30,3): print(i) 2.Write a program using a for loop that calculates the sum of numbers from 1 to 10 sum=0 for i in range(1,11): sum+=i print(f"The sum of numbers from 1 to 10 is:{sum}") 3.Write a program that takes your name as input and prints each letter of your name using a for loop. name=input("Enter your name: ") for i in name: print(i[0]) 4.Write a program that counts how many vowels are in a given string using a for loop. string=input("Enter the string: ") vowels=("a","e","i","o","u") count=0 for i in range(len(string)): if string[i] in vowels: count+=1 print(f"Total number of vowels in the string:{count}")
#1. Multiples of 3: #Write a for loop that prints all multiples of 3 between 1 and 30. for i in range(3, 4): for j in range(1, 31): print(f"{i}X{j} = {i*j}") #2. Sum of First 10 Numbers: #Write a program using a for loop that calculates the sum of numbers from 1 to 10. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Sum= 0 for number in numbers: Sum += number print("Sum of: ", Sum) #3. Print Your Name Letter by Letter: #Write a program that takes your name as input and prints each letter of your name using a for loop. name = "Ragvendra" for index, letter in enumerate(name): print(letter)
Write a program using a for loop that calculates the sum of numbers from 1 to 10. total = 0 for num in range(1,11): total = total + num print(num) print(f"sum is {total}")
Home Work 4: Code string = input("enter string as your wish: ") vowels = "aeiouAEIOU" vowel_count = 0 for char in string: if char in vowels: vowel_count += 1 print(f"total vowels in given sting: {vowel_count}") output: input: hello total vowels in given sting:2
#Day-11 #HomeWok-01 for i in range(1,31): if i%2==0: print(i) #HomeWork-02 sum=0 for i in range(1,11): sum+=i print("total sum of 1 to 10 is : ",sum) #HomeWork-03 name="prajwal" for index,letters in enumerate(name) : print(letters*(index+1)) #HomeWork-04 string=input("give an input : ") sum=0 vowels="aeiouAWIOUU" for vowel in string: if vowel in vowels: sum+=1 print("total number of vowels in the given string is :",sum)
Write a program that counts how many vowels are in a given string using a for loop. string = input("Enter the sentence to count vowels>> " ) vowels = "aeiouAEIOU" Vowel_count = 0 for x in string: if x in vowels: Vowel_count += 1 print(f"the number of vowels in the string {string} is {Vowel_count}")
Write a program that takes your name as input and prints each letter of your name using a for loop. name = input("Enter your name: ") for i in name: print(i)
When we use enumerate keyword we can do unpacking right but while using for loop in dictionary .. without using enumerate.. key and value is unpacked...?? Is it not necessary to use enumerate here
Because pydroid is not working from LCM factor I was watching ur video which u have done just python basics in that i saw about that app please say na from which app we can learn python in mobile
Hats off to you brother for the continuity 🫡🫡👏👏👏🚀🚀🚀🚀🫶🏻🫶🏻
Thanks!! 🔥
#Day 10
Present 😊
My morning routine is to watch your one video of python and practice it in the evening after work...
💥# 4.Homework
str=input("Enter the string: ")
vowels="aeiouAEIOU"
vowel_count=0
for char in str:
if char in vowels:
vowel_count+=1
print(f"Number of vowels are: {vowel_count}")
# Write a for loop that prints all multiples of 3 between 1 and 30.
for i in range(3,31,3):
print(i)
# Write a program using a for loop that calculates the sum of numbers from 1 to 10.
total_sum = 0
for i in range(1,11):
total_sum += i
print(total_sum)
# Write a program that takes your name as input and prints each letter of your name using a for loop.
input_name=input("Enter a name >> ")
for character in input_name:
print(character)
# Write a program that counts how many vowels are in a given string using a for loop.
input_name=input("Enter a name >> ")
vowels="aeiouAEIOU"
count_char=0
for char in input_name:
if char in vowels:
count_char += 1
print(count_char)
Homework:
1.Write a for loop that prints all multiples of 3 between 1 and 30.
for i in range(3,30,3):
print(i)
2.Write a program using a for loop that calculates the sum of numbers from 1 to 10
sum=0
for i in range(1,11):
sum+=i
print(f"The sum of numbers from 1 to 10 is:{sum}")
3.Write a program that takes your name as input and prints each letter of your name using a for loop.
name=input("Enter your name: ")
for i in name:
print(i[0])
4.Write a program that counts how many vowels are in a given string using a for loop.
string=input("Enter the string: ")
vowels=("a","e","i","o","u")
count=0
for i in range(len(string)):
if string[i] in vowels:
count+=1
print(f"Total number of vowels in the string:{count}")
awesome teaching
💥#1. HOMEWORK
for i in range(1,31):
if i%3==0:
print(i)
#1. Multiples of 3:
#Write a for loop that prints all multiples of 3 between 1 and 30.
for i in range(3, 4):
for j in range(1, 31):
print(f"{i}X{j} = {i*j}")
#2. Sum of First 10 Numbers:
#Write a program using a for loop that calculates the sum of numbers from 1 to 10.
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Sum= 0
for number in numbers:
Sum += number
print("Sum of: ", Sum)
#3. Print Your Name Letter by Letter:
#Write a program that takes your name as input and prints each letter of your name using a for loop.
name = "Ragvendra"
for index, letter in enumerate(name):
print(letter)
💥# 3.HOMEWORK
name=input("Enter your Name: ")
for i in name:
print(i)
This is so intresting
Tqsm annaa ❤
Present bro
💥# 2.HOMEWORK
for i in range(1,11):
print(f"Sum of 1 to {i} are:{i+i}")
@@krishnan3006
i=೦
For l in range(1, 11)
i+=l
Print (i)
This is my logic
@@kirans1715 👍♥️
Write a for loop that prints all multiples of 3 between 1 and 30.
for num in range(1,30):
if num % 3 == 0:
print(num)
Write a program using a for loop that calculates the sum of numbers from 1 to 10.
total = 0
for num in range(1,11):
total = total + num
print(num)
print(f"sum is {total}")
Placing logic code at the right place matters, I need to work on that
books=["comic","fiction","science","art","math"]
for Box in books:
print(Box)
Sir e class tumba intersting agi ittu 💓🫶❤❤️🔥🙏
🙌❤️
Love you bro! I liked your explanation and learning continuously without deviating. Thanks
Glad to hear that
bro plzzz continue the lectures its helpful
Home Work 4: Code
string = input("enter string as your wish: ")
vowels = "aeiouAEIOU"
vowel_count = 0
for char in string:
if char in vowels:
vowel_count += 1
print(f"total vowels in given sting: {vowel_count}")
output:
input: hello
total vowels in given sting:2
Learnt more when solving homework and extra questions
Home Work 01: Code
for i in range(3,31,3):
print(f"{i} ", end="")
output:
3 6 9 12 15 18 21 24 27 30
Bro formatted string na yav time nali use madbeku bro
Present guru, late attendance today. Sometimes we write logic in different place
#Day-11
#HomeWok-01
for i in range(1,31):
if i%2==0:
print(i)
#HomeWork-02
sum=0
for i in range(1,11):
sum+=i
print("total sum of 1 to 10 is : ",sum)
#HomeWork-03
name="prajwal"
for index,letters in enumerate(name) :
print(letters*(index+1))
#HomeWork-04
string=input("give an input : ")
sum=0
vowels="aeiouAWIOUU"
for vowel in string:
if vowel in vowels:
sum+=1
print("total number of vowels in the given string is :",sum)
Present Chandan 💯❤️
Home Work 2: Code
sum=0
for i in range(1,11):
sum+=(i)
print(sum)
output:
55
Present anna ❤
Home work No:03 code
name = input("enter name: ")
for letter in name:
print(letter)
output:
enter name: sachin
s
a
c
h
i
n
Thank you so much 😊
I = "10th day present bro"
print(i)
O/P: 10th day present bro
Thank u so much for the wonderful class ❤, waiting for next class😊
You are welcome 😊
for i in range(1,100,2):
print (f"i 🥹{i},end=""")
while i
Present sir❤❤❤
day 10 done
How we can print table by without using formatted string
Bro hackerrank alli yavg practice madbeku adna upcoming vedios alli heltira
Write a program that counts how many vowels are in a given string using a for loop.
string = input("Enter the sentence to count vowels>> " )
vowels = "aeiouAEIOU"
Vowel_count = 0
for x in string:
if x in vowels:
Vowel_count += 1
print(f"the number of vowels in the string {string} is {Vowel_count}")
anna video masth madthi clear agi artha aketh
Thanks 🙌
Present bhai❤
Write a program that takes your name as input and prints each letter of your name using a for loop.
name = input("Enter your name: ")
for i in name:
print(i)
n=2
For i in range (1,11):
Print (i*n)
Hi bro good evening
Bro among B. E and BCA which one is better
Present 💝 bro
Waiting for ur video❤
Present anna😊
When we use enumerate keyword we can do unpacking right but while using for loop in dictionary .. without using enumerate.. key and value is unpacked...?? Is it not necessary to use enumerate here
Super bro
Wating bro day 10 present
Present sirr.....😊❤
Bro how to print "×"(multiply symbol) in computer
Broo I really hands of you broo
🔥🙌
Day 10🎉
Brother please say in which app we can use this python for studying in mobile only
2nd year roadmap please
Hi bro, neevy complete Python heli kodteera, navu job ge yava step alli appply madabahudu
Day 10❤
Present ❤
Present Anna 💝
Day 10❤🥳
Present bro ❤
❤🎉
Present sir ❤
Bro I am unable to get the output of the 3rd homework.can anyone give the code...
present sir
2nd year roadmap plz
Present bro😊
❤❤❤
Present sir 🙋
Because pydroid is not working from LCM factor I was watching ur video which u have done just python basics in that i saw about that app please say na from which app we can learn python in mobile
Check instagram reel
Present😊
Present brother
Sjce good for cs?
Yeah
@@EngineeringinKannada cse in sjce or aiml in BMS which is better
present anna
❤🙌
Anna enumerate svlpa artha agill
from hubli
Present anna
🤚
Present sir
Class 10
I am present ✋🏼guru
10
Present Sir
siuuu
Present bro
Howdu bro i am finding difficulty in loops😢
Keep practising
Present
Prsnt Anna
𝙿𝚛𝚎𝚜𝚎𝚗𝚝 𝚊𝚗𝚗𝚊❤
22:39 Benki
bro I hv doubt so Plz gv ur E-ID
Day 10🎉
Present ❤
Present bro😊
present anna❤
Present bro❤
Present sir ❤
Present sir❤❤❤
Present brother