Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1)
- name = ["Александр", "Алекс", "Альберт"]
- surname = ['Вотяк', "Вотяков", "Вотякович"]
- otchestvo = ['Романович']
- for first in name:
- for second in surname:
- for third in otchestvo:
- print(f'Диплом с отличием вручается {second}y {first}у {third}у')
- #2)
- A = input()
- B = int(input())
- C = int(input())
- print(f'{A}{B:04}-{C:03}')
- #3)
- a = int(input())
- b = int(input())
- print(f'{a:>8}')
- print(f'{b:>8}')
- print(f'{a + b:>8}')
- #4)
- r, k = int(input()), int(input())
- summa = 100000000
- for i in range(k):
- summa += summa * r * 0.01
- print(f'{summa:,.2f}')
- #5
- for a in range(1,101):
- for b in range(1,101):
- result = a * b
- if '0' in str(result):
- print(f'[DEBAG] {a=} {b=} {result=}')
- # 6)
- a,b,c,d = list(map(int,input().split()))
- L1 = ['{:08b}.','{:b}.', "{:o}.", "{}.", "{:x}."]
- for i in range(len(L1)):
- print((L1[i]*4)[:-1].format(a,b,c,d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement