Python Class Logic Coding Exercise | SheCodes

Python Class Logic Exercise

Instructions
Create a new Google Colab
  • Define a class called User, which receives the first name and the year of birth
  • Create a method called “Welcome” which should display “Welcome Name, you were born during the 20th century” or 21st if the user was born after 2000
  • Welcome 2 users to test this out