If i remove the +fun it only prints 'Hi'


#1

what is the logic behind this code?

def display(fun):
    return 'Hi.' +fun

def message():
    return 'How are you?'

print(display(message()))

#2

The code says what it does, I’m not sure what you’re asking or what the confusion is about.

Perhaps you should be asking about some specific action in there, or perhaps grabbing a tutorial and reading about how those things work is in order?

I suppose what I’m really looking for here is an argument for why you need help with it.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.