For Loops in python | Python Tutorial #14

preview_player
Показать описание
In this video, I have explained about for loops in python and how to use several related techniques to write effective python programs.
Рекомендации по теме
Комментарии
Автор

Mydict = {
"Steve" : 5,
"Alfred" : 8,
"Joe" : 10,
"Brooke" : 4,
"Suzy" : 3
}

for key, value in Mydict.items():
print(f"The grade for {key} is {value}")

alphahellhound
Автор

dict1={
'alex':98,
'robert':96,
'jim':89,
'martin':95
}
for i, j in dict1.items():
print(f'Name-{i} and mraks in maths-{j}')

godhunter-lordsmobile
Автор

schoolDict = {
"jack":21,
"daniel":55,
"josh":"43",
"Mark":47,
"thomas":52,
"dani":37
}
for name, marks in schoolDict.items():
print(f"Studnt's name is {name.capitalize()} and student's mark is {marks}")

Shekaib
Автор

mydict ={
"avni ": 100,
"shanaya": 99,
"alaya": 98,
"angel" : 97,
}
for key, value in mydict.items():
print (f"the name is {key} and the marks are {value}")
output =
the name is avni and the marks are 100
the name is shanaya and the marks are 99
the name is alaya and the marks are 98
the name is angel and the marks are 97

sandeepgupta-zwkx
Автор

The for loop coding is very nice and easy to understand

vigneshiyer
Автор

mydict = {
"favour": "100",
"harry": "90",
"favour": 100,
}
for item in mydict.items():
print(item)

favourwilliams
Автор

students = {

'adam':'60',
'jhon':'80',
'hannah':'91',
'samantha':'100',
'brayton':'100'
}

for key, value in (students.items()):
print(f'name:{key} marks:{value}')

omparlikar
Автор

Mydic = {
"Vijay":"25/30"
"Manoj":"10/30"
"Megasai":"30/30"
"Shivam":"24/30"
"Tejayadav":"20/30"
}

for key, value in Mydic.items():
Print(f"name: {key} and the marks are {value}")

manojdomana
Автор

nmDict = {
    'Bunty' : 90,
    'Marky' : 100,
    'Mandy' : 98,
    'Sugoma' : 99
}

for name, marks in nmDict.items():
    print(f'{name} has scored {marks}')

vikrantsinghbhadouriya
Автор

markslist={
'rohan':'68/100',
'johan':'79/100',
'mohan':'75/100',
'tohan':'44/100',
'pohan':'39/100',
'roham':'64/100',
'rahim':'35/100',
'tohit':'97/100',
}

for name, marks in markslist.items():
print(f'name:{name} marks:{marks}')
print()

brokenskullvk
Автор

Myclass={"Talha":96, "Immad":92, "Adnan":91}
for_keys, _values_in_Myclass.item():

talharauf
Автор

dict1 = {
"nasar": "95",
"harry": "36",
"sasank":"45"

}

for item in dict1.items():
print (item)



i am 13 years old

sasankpuppala
Автор

Thank you so much, your explanation is better than my lecturer, you save me from final exam.🫡🫡🫡👍👍👍

hanbin
Автор

Pls make a vedio of advanced for loops for moderate coders it will be more helpful and make some more vedios

vigneshiyer
Автор

Myclass ={"Prashanth":87, "Hemanth" :67, "Darshan" : 55}

for keys , values in Myclass.items():
print(f"the student Name is {keys} and he got {values}marks")

prashanthd
Автор

Angular.js bhi sikha do aur tutorial bnao veer g

KanwarpartapSingh
Автор

why you making video in this channel before also you have made that

AllinonetoallIndia
Автор

I came here after watching python in one video hindi 😅😅

theankushgupta
Автор

# quick quiz
myStudents={'rob': 100, 'gustav': 90, 'kelly': 1000}
for name, scored in myStudents.items():
print(f'Your name is {name} and you scored {scored}')

nowthatsme