Question: Followers Create a Python class called User that represents a user of a web - app ( i . e . , instagram or similar

Followers
Create a Python class called User that represents a user of a web-app (i.e., instagram or similar).
The class should have the following attributes:
name : a string
created_on : a python time stamp (read about times here)
follows a python set object containing the other users that this user follows
and the following methods
follow adding a new person to follow
unfollow to un follow someone
Now create some functionality (i.e., create new attributes or methods) so that it is also possible to calcuate all the followers of a particular user. Ensure this dynamically updates when a user begins or ends following another user
Followers Create a Python class called User that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!