I'm a bit of a noob; just wondering whats wrong here
__author__ = 'Ghossein'
def double(x):
x = 0.0
d = 0.0
d = x + x
return (d)
def trip_dub(x):
t = 0.0
t = double(x) + double(x) + double(x)
return(t)
def main():
result=0.0
result = double(trip_dub(1.0))
print(result)
I want to print 'result' but when i run the code nothing comes up (no errors either). If i put print(result) on it's own line then it says result is not defined.