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!')
def bar(): 
    name = input ('>>').lower().split()
    for item in name:
        if name == bar:
            print ('bar here!')

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


Recommended Answers

All 2 Replies

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, learning, and sharing knowledge.