Unit 7 - Classes: Printing Attributes from a Class - Python

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

Рекомендации по теме
Комментарии
Автор

I need to watch more videos, I spent over 2 hours on stackoverflow trying to get class values to print but it wasn’t until I found this video that I can finally rest easy.

nuclearpotential
Автор

I have no idea if you will ever see this comment but if you do, I just want to say, "This is very helpful". Thank you.

KemarABROWN-qwvf
Автор

Hmm. So I'm doing it right, but it just doesn't work when you print a list of them. Fascinating.

bodaciouschad
Автор

ok but you always query for a known instance of dog in memory, what if you had a huge python list of dogs (which are strings, not instantiated objects in memory) and you wanted to pass that list in a for loop to query your class to return attribute info for dogs, how do you do that? Not one class tutorial on youtube explains this?

stephen