Здравствуйте люблю программировать, но сегодня попался на вот эту ошибку программирую на пайтон вот код:
 from fractions import Fraction
 import math
 s = input().split()
 r = input().split()
 a = [float(s[0]),float(r[0])]
 b = [float(s[1]),float(r[1])]
 c = Fraction(a[0] - a[1],2)
 d = Fraction(b[0] - b[1],2)
 c = math.sin(c) ** 2
 d = math.sin(d) ** 2 * math.cos(a[0]) * math.cos(a[1])
 e = c + d
 e = math.asin(math.sqrt(e))
 e = e * 2 * 6371
 print(e)
 а вот ошибка:
 Traceback (most recent call last):
 File "script.py", line 7, in 
 c = Fraction(a[0] - a[1],2)
 File "/usr/local/python-3.8.1/lib/python3.8/fractions.py", line 174, in __new__
 raise TypeError("both arguments should be "
 TypeError: both arguments should be Rational instances
 Быстрее