dipplay7
student_name = 'Arthur' marks = {'Zhaniya': 90, 'Marat': 55, 'Arthur': 77} for student in marks: if student == student_name: print(marks[student]) break else: print('No entry with that name found.')
dipplay7
for n in range(2, 10): for x in range(2, n): if n % x == 0: print( n, 'равно', x, '*', n/x) break else: print(n, 'это простое число')
Answers & Comments
Verified answer
Ответ:
------------------------------
Объяснение:
marks = {'Zhaniya': 90, 'Marat': 55, 'Arthur': 77}
for student in marks:
if student == student_name:
print(marks[student])
break
else:
print('No entry with that name found.')
for x in range(2, n):
if n % x == 0:
print( n, 'равно', x, '*', n/x)
break
else:
print(n, 'это простое число')
1-3
2-1
3-2
4-4