Advertisement
sigmachto

Untitled

Jul 11th, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.99 KB | None | 0 0
  1. # 1)
  2. name = ["Александр", "Алекс", "Альберт"]
  3. surname = ['Вотяк', "Вотяков", "Вотякович"]
  4. otchestvo = ['Романович']
  5. for first in name:
  6.     for second in surname:
  7.         for third in otchestvo:
  8.             print(f'Диплом с отличием вручается {second}y {first}у {third}у')
  9.  
  10. #2)
  11. A = input()
  12. B = int(input())
  13. C = int(input())
  14. print(f'{A}{B:04}-{C:03}')
  15.  
  16. #3)
  17. a = int(input())
  18. b = int(input())
  19. print(f'{a:>8}')
  20. print(f'{b:>8}')
  21. print(f'{a + b:>8}')
  22.  
  23. #4)
  24. r, k = int(input()), int(input())
  25. summa = 100000000
  26. for i in range(k):
  27.     summa += summa * r * 0.01
  28. print(f'{summa:,.2f}')
  29.  
  30. #5
  31. for a in range(1,101):
  32.     for b in range(1,101):
  33.         result = a * b
  34.         if '0' in str(result):
  35.             print(f'[DEBAG] {a=} {b=} {result=}')
  36. # 6)
  37. a,b,c,d = list(map(int,input().split()))
  38. L1 = ['{:08b}.','{:b}.', "{:o}.", "{}.", "{:x}."]
  39. for i in range(len(L1)):
  40.     print((L1[i]*4)[:-1].format(a,b,c,d))
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement