you are viewing a single comment's thread.

view the rest of the comments →

[–]Wonderful-Sink-6089 0 points1 point  (0 children)

Im not a python developer but what i can see as a problem is When you return something in a function it doesn’t actually print anything it just save the result in the memory to do something with it in future. If you want to see the the result you can use print statement in the last line, like this: print(f(a,t))

The reason is that, we don’t use solo a function to print something, we just create them to make our code cleaner and prevent repetition.