Python Tutorial for Beginners | Zip and Enum Functions #23

preview_player
Показать описание
Python tutorials for Beginners
Zip and Enum functions in Python

--You May Also Like --

==================FOLLOW ME ==================

Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!
Рекомендации по теме
Комментарии
Автор

Very cool stuff. Please, when you have a second, I have a conundrum that I need help with. I have two lists. The first list contains Work orders and the second list contains taks.
For example:
wo = [123, 123, 123, 456, 456, 789, 789]
tasks = [1, 2, 3, 1, 2, 7, 8]

Basically, I want to find the index of both lists at a given point in the list. Let's say the 3rd "123" in the list because it corresponds to task 3.

So it should work something like this:

for items in wo, task:
if item == 123 and task == 3:
print(index)

jsprez
Автор

num and Enumerate both are different. title is bit misleading.

hayatt
Автор

Enum and Enumerate both are different. title is bit misleading.



Thank you !!

webapplicationguide