Am trying to get a function call but i cant get it to print. Please help here. This is the code:

def foo():
    name = input ('>>').lower().split()
    for item in name:
        if name == foo:
            print ('foo here!')
    else:
        bar()
def bar(): 
    name = input ('>>').lower().split()
    for item in name:
        if name == bar:
            print ('bar here!')


def start():
    print('Welcome Home')
    name = input
    foo()


start()

Add print('Current item is:', repr(item)) between lines 3 and 4.

Wow! Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.