I start to learn Python. Please give a review to my program:
i = input("input weight = ")
def chicken(i):
price = 2000
print('price /kg = ',price)
totalprice = int(i)*price
print('total price = ',totalprice)
chicken(i)
This program is run well if I input with number, but get an error with alphabet.
What should I do if I give an alphabet then I can do print("wrong character")
?