commit e10c7eb6485bca850fce3e0346704b6f128ca813
parent 09cffab05e8db5fa6449b5eb6ca0a1ee80aa5967
Author: Martin J. Klöckner <64109770+klewer-martin@users.noreply.github.com>
Date: Tue, 9 Feb 2021 21:24:42 -0300
Add files via upload
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/poop.py b/poop.py
@@ -0,0 +1,15 @@
+# Python Object-Oriented Programming
+
+class client:
+ def __init__(self, name, surname, age):
+ self.name = name
+ self.surname = surname
+ self.age = age
+ self.email = name.lower() + '.' + surname.lower() + '@company.com'
+
+
+client_1 = client('Martin', 'Klockner', 21)
+client_2 = client('Name', 'Surname', 00)
+
+print(client_1.name, client_1.surname)
+print(client_1.email)