Hello. I am stuck on a simple piece of code. For some reason it keeps saying it can't call the Str object. Im also unsure on how to float the data to 2 decimal points (i don't know where the 2.f% should go.) The task is to make a taxi fare calculator based on the given distance. It costs £1.20 to start with, for every km up to 10 its 70p and over 10 an extra 30p per km. Thank you.
def taxiFare(): distance = input("How long is the journey to your desired destination?") start = 1.20 if distance <=10: print "the total journey price will be" (distance*0.7)+start elif distance >10: print "the total of the journey will be" (((distance - 10)*30)+8.20)