I\'m writing a function that prompts for input and then returns different results based on the input and then asks for input again. I\'ve got it returning the correct values
I would do it with a while loop. Like This:
while True: com = raw_input('Command:').split() if len(com) == 0: break elif com[0] == 'i': bike_name = command[1] + ' ' + command[2] return get_product_id(products, bike_name)