hey thanks for reply........
I am from finance background, regardless
I am learning coding as hobby.
So you guys are my teachers in someway. So, yes we all can agree as this being homework.
now assuming that this is homework, can any one give me idea as how to proceed??
do i need a list or dictionary or variable & or define a function?
What i had done?
ok '0' is not an integer. So i don't need the break statement.
I am from finance background, regardless
I am learning coding as hobby.
So you guys are my teachers in someway. So, yes we all can agree as this being homework.
now assuming that this is homework, can any one give me idea as how to proceed??
do i need a list or dictionary or variable & or define a function?
What i had done?
print('How many cars do you have? ') user_input = input() if user_input == int: pass else: print('Please input number only. ') def hmCars(howManyCars): for x in user_input: if user_input <= 0: break else: for x in user_inputhow i can loop through user_input ?
ok '0' is not an integer. So i don't need the break statement.