All About: Course Discussions

We love your enthusiasm for all the lectures and assignments that are a part of the courses run by Jovian.ml. Here you can have exciting, intense, or basically any kind of discussions around these courses. So, let your curiosity and creativity brew some interesting discussions.

2 Likes

Hello , i have a doubt suppose i have list
paris = [200,20,5]

now if i want to print the name of list what should i do
because wen i print(paris) it prints element of list paris and not its name “paris”

class NamedObject:
    def __init__(self, name, obj):
        self.name = name
        self.obj = obj

    def __getattr__(self, attr):
        if attr == 'name':
            return self.name
        else:
            return getattr(self.obj, attr)


unnamed_list = [1, 2, 3]
named_list = NamedObject('named_list', unnamed_list)

print(named_list) # [1, 2, 3]
print(named_list.name) # 'named_list'

Hope it helps :slight_smile:

2 Likes

Thanks to all the Jovian Team, the service you provide is invaluable

Hello! I just finished my zero to panads course. I am interested in learning more about Data Science. Is Deep Learning with PyTorch: Zero to GANs a good next step??

I am a 12 so can i handle the math for this course