py-repo

a python playground
Index Commits Files Refs README
poop.py (416B)
   1 #   Python Object-Oriented Programming
   2 
   3 class client:
   4     def __init__(self, name, surname, age):
   5         self.name = name
   6         self.surname = surname
   7         self.age = age
   8         self.email = name.lower() + '.' + surname.lower() + '@company.com'
   9 
  10 
  11 client_1 = client('Martin', 'Klockner', 21)
  12 client_2 = client('Name', 'Surname', 00)
  13 
  14 print(client_1.name, client_1.surname)
  15 print(client_1.email)