1 |
class SchoolMember: |
2 |
def __init__(self, name, age): |
3 |
self.name = name |
4 |
self.age = age |
5 |
print('(Создан SchoolMember: {0}'.format(self.name)) |
6 |
def tell(self): |
7 |
'''Вывести информацию.''' |
8 |
print('Имя:"{0}" Возраст:"{1}"'.format(self.name, self.age), end=" ") |
9 |
members_list = {} |
10 |
for member in members: |
11 |
member.tell() |
12 |
print(i) |
13 |
a = () |
14 |
b = {} |
15 |
for i in range(n): |
16 |
print(var) |
17 |
else: |
18 |
n = len(a) |
19 |
if a % 2 == 0: |
20 |
chet.append(i+1) |
21 |
print(chet) |
22 |
def new_member(): |
23 |
global new_member_list |
24 |
print('Создание нового участника!') |
25 |
fname = input ('Введите фамилию : ') |
26 |
name = input ('Имя : ') |
27 |
weight = input ('Вес : ') |
28 |
def counter_N(): |
29 |
global N |
30 |
N += 1 |
31 |
members_list = {} |
32 |
elif key_menu == 'q': |
33 |
print ('Quit') |
34 |
break |
35 |
elif key_menu == 'l': |
36 |
counter_N() |
37 |
for i in members_list: |
38 |
print(i) |
39 |
else: |
40 |
print ('Переключитесь на раскладку EN и нажмите еще раз.') |
41 |
continue |
42 |
t = Teacher('Mrs. Daniel', 40, 30000) |
43 |
s = Student('Samad', 25, 75) |
Комментарии