Μπάμπης Μπουλής
Master of Science in Computer Engineering
Θέμα-Β Απαντήσεις (25 μονάδες)
Β1. (15 μονάδες)
Οθόνη
–3–––––4
–8–––––4
13–––––4
18–––––3
21–––––4
23–––––3
26–––––4
30
Β2. (10 μονάδες)
class student:
—-def __init__(self, id, name, dateofbirth):
—-—-self.id = id
—-—-self.name = name
—-—-self.dateofbirth = dateofbirth
—-—-print “ονομάζομαι “,self.name, ” με id “, self.id, ” γεννήθηκα “, self.dateofbirth
—-def studies(self, course):
—-—-print “Μελετάω “, course
—-def eats(self,food):
—-—-print “όταν πεινάω τρώω “, food
tasos = student(“123”, “Μπαλής”, “28/1/1998”)
kyriaki = student( “567”, “Μπαλή”, “1/1/1999”)