Can i loop through class instances | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can i loop through class instances

Hey guys, is there a way to loop through a class object after assigning one and store certain instances from that object into a list? the link below is the project I'm working on. for example, looping through the objected "vickers", and storing "Meredith" into a list? appreciate any help! Thanks. https://code.sololearn.com/cR8meJONIYp1/#py

19th Nov 2020, 9:56 PM
David
David - avatar
1 Answer
+ 1
NotAPythonNinja thanks again! its works!
19th Nov 2020, 10:58 PM
David
David - avatar