def f(x, y): return x * y**2 def g(m): E = f(m, lt_speed) return E lt_speed = 3e8 print g(3)