Python 3.7: How To Work With Nested Tuples In Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Was searching for a while to work this one out and found this. Very clear and quick and straight to the point. Thank you very much!

Jourden
Автор

Hey, great video! How would you search the tuple to see if "Dog" exists, for example? I tried following along with the example you gave and I added the following bit of code, but it didn't work:

if "Dog" in nested:

print("found it")

else:

print("nope")

Thanks in advance :)

luisatierney
Автор

How would you get that nested tuple to be a key:value for a dictionary?

vio-noob_