I am a beginner here as well as programming in Python, and I am currently using code academy to help me learn. So I decided to venture off and make a program on my own and keep getting stuck with error message: can't multiply sequence by non-int of type 'float'
The program is very simple, a tip calculator where it asks the user to input information to have the program determine the amount of tip and total amount of bill. And it does ok up until the point of the math. I know it's not "pretty" but it's just me really trying to figure out how to work it. Any help would be greatly appreciated!
Here is what I have so far:
print ("Restuarant Bill Calculator")
print ("Instructions: Please use only dollar amount with decimal.")
# ask the user to input the total of the bill
original = raw_input ('What was the total of your bill?:')
cost = original
print (cost)
# ask the user to put in how much tip they want to give
tip = input('How much percent of tip in decimal:')
tipamt = tip * cost
print "%.2f" % tipamt
# doing the math
totalamt = cost + tipamt
print (totalamt)