commit 74654c9cb3f03266cc5300717475c49b24a9f15b
parent 83ec5a336a722cd58d3ac66bbaaae5dfd1285442
Author: klewer-martin <martin.cachari@gmail.com>
Date: Fri, 12 Feb 2021 17:57:19 -0300
Merge branch 'master' of github.com:klewer-martin/py-repo
Merge necessary to update local files;
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)