I've been learning python on codeacademy and I wanted to make a program that could help me with my homework and I started with pythagoras a2+b2=c2 and it works perfectly on codeacademy but when I try it on the real python program it won't work and it closes before I can read what's wrong.
a = input ("what is a")
b = input ("what is b")
a = a*a
b = b*b
c = a+b
from math import sqrt
c = sqrt (c)
print (c)
i know its pretty basic but im still learning also im not sure what version of python code academy is but im pretty sure the python program im useing is 3
c = sqrt(a**2 + b**2)