My programme has a runtime error, but I couldn't figure it out. Where's the problem? It would be much appreciated if you could help me! :) Here's the code:
P.S. I'm kinda new to python! Thanks for your help!
import math
n = input()
for a in range(n):
x, y = input().split()
num = math.sqrt(x**2+y**2)
print(num)
nis string and not integer. Sorange(n)would not work. You have to convertnto integer first