Hello I’m writing this code below and its returning a string.
the cost of apples
cost_of_apple = 2
Amount of apples
amount_of_apples = input("How many apples do you want? ")
total_sum = cost_of_apple * amount_of_apples
print("You have to pay: " + str(total_sum))
Its printing = 2222 # so the double of the actual result. can someone please clarify why its coming out like that.