Wot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
def show_magicians(names):
	for name in names:
		print('Hello ' + name.title() + '!')

def make_gread(name_magicians):
	while name_magicians:
		gread_name = name_magicians.pop()
		name_1 = 'Great ' + gread_name.title()
		new_magicians.append(name_1)
	while new_magicians:
		name_gread = new_magicians.pop()
		magicians.append(name_gread)

magicians = ['petya', 'vasya', 'oleg']
new_magicians = []
make_gread(magicians)
show_magicians(magicians)
10 мая 2020, 22:19 0 danielly2541
blog comments powered by Disqus