def main():
print('Welcome to the Fast Freight Shipping Company Calculator for Shipping Charges')
print()
#constants for the shipping prices
weight_one <= 2
weight_two > 2
weight_three > 6
weight_four > 10
weight_one_rate = 1.10
weight_two_rate = 2.20
weight_three_rate = 3.70
weight_four_rate = 3.80
#get the weight of the package using the input fucntion
package_weight = float(input("Please enter the weight of your package: "))
#Calculate shipping costs
if package_weight == weight_one:
calc_cost_with_weight_one_rate
elif package_weight == weight_two:
calc_cost_with_rate_two_rate
elif package_weight == weight_three:
calc_cost_with_rate_three_rate
else:
calc_cost_with_weight_four_rate
def calc_cost_with_weight_one_rate():
cost = package_weight * weight_one_rate
def calc_cost_with_rate_two_rate_():
cost = package_weight * weight_two_rate
def calc_cost_with_rate_three_rate_():
cost = package_weight * weight_three_rate
def calc_cost_with_rate_four_rate_():
cost = package_weight * weight_four_rate
print('Based on a weight of', format(package_weight, '.2f'),\ 'pounds, the shipping charge is $', format(cost, '.2f'),sep=' ')
#calls main
main()
As far as I can tell, my code looks correct, but when I try to run it in Shell, I get the error 'Unexpected Character After Line Continutation Character' and a long space after the last print is highlighted. Hitting backspace deletes the last ), in the print function before main, so I'm not entirely sure how to fix it, and I haven't encountered this syntax error before.