diff --git a/Python/str-repr.py b/Python/str-repr.py new file mode 100644 index 0000000..db1f442 --- /dev/null +++ b/Python/str-repr.py @@ -0,0 +1,17 @@ +class footballer: + def __init__(self, name, surname, age): + self.name = name + self.surname = surname + self.age = age + + def __str__(self): + return f"Footballer: {self.name} {self.surname} Age: {self.age}" + def __repr__(self): + return f'Footballer"{self.name}"," Suurname: " {self.surname}", Age: {self.age})' + +footballer1 = footballer("Lionel", "Messi", 36) + +print(footballer1) +print(repr(footballer1)) + + diff --git a/Crash-Proof_Calculator.py b/python/Crash-Proof_Calculator.py similarity index 100% rename from Crash-Proof_Calculator.py rename to python/Crash-Proof_Calculator.py