Xisepe

Untitled

Nov 23rd, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. # 23
  2. pressure = 1071  # давление в атмосферах
  3. Pa = 101325  # 1 атмосфера в па
  4. print(pressure * Pa)
  5.  
  6. # 8
  7. b = float(input('Введите основание:\n'))
  8. h = float(input('Введите высоту:\n'))
  9. print(0.5 * b * h)
  10. print((((0.5 * b) ** 2 + h ** 2) ** 0.5) * 2 + b)
  11.  
  12. # 38
  13. kmh = float(input('Введите kmh:\n')) * 1000 / 3600
  14. ms = float(input('Введите ms:\n'))
  15. if kmh > ms:
  16.     print('kmh is greater')
  17. elif kmh < ms:
  18.     print('ms is greater')
  19. else:
  20.     print('equals')      
  21.    
  22. # 53
  23. c = 0
  24. for i in range(101):
  25.     if str(i).__contains__('3'):
  26.         c += 1
  27. print(c)
Advertisement
Add Comment
Please, Sign In to add comment