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 webapp ie instagram or similar
The class should have the following attributes:
name : a string
createdon : 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 ie 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
