Initialer Import der Synology Scripts

This commit is contained in:
root
2026-08-05 08:43:57 +02:00
commit 5e32a7c411
404 changed files with 79932 additions and 0 deletions
@@ -0,0 +1,30 @@
"""Exercise 5:
1.)
Write a class Student that has the following member variables:
- Name (String)
- Lastname (String)
- Age (Integer)
- Id (Integer)
2.)
Write a method that prints the information about the student.
E.g. Student('Jan', 'Schaffranek', 27, 1080133228459) will print:
'Jan Schaffranek is 27 years old and has the id 1080133228459'
"""
class Student:
pass
def print_student(self):
pass
def main():
oskar = Student("Oskar", "Oskarson", 29, 1080132254623)
oskar.print_student()
jan = Student("Jan", "Schaffranek", 28, 1080133228459)
jan.print_student()
if __name__ == "__main__":
main()