Beginner Python Tutorial 58 - for Loop with Index

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

I am a new kid programer I am 11 and this video helped so much this is legit the task my dad gave me so this video is great

mrhankey
Автор

Thank you so much for uploading this! Wow! I just used for loop with index to modify a 15, 000 line file!

MattWatsonHarmonica
Автор

funny, this helped me with a different problem known as the skyline problem. I've been going back to it over the past few days as a learner it was difficult enough so thanks for the video.

carbonwolf
Автор

Dude, you explained that super well!! Super helpful!

ExcelTutorials
Автор

why do we put the [i] after foods im not quite crystal clear on that

tec
Автор

So how is this different from using the following format:

foods = ['asparagus', 'tacos', 'strawberries', 'yogurt', 'bagels']

for index, food in enumerate(foods):
print(index, food)


This prints the same thing but my question is if there is any pro/con to using your method vs the method I just described above?

Thanks.

anasputhawala
Автор

I was confused in it and u helped me 😃

parthgaming
Автор

I don't want user to write like this abcde= and get an Error message .. I want them to write like this “ abc=abc no Error message. How to write a code for making such environment.. please help me my client is waiting for it

deborshikashyap