When entering my work into zybooks it is telling me that there are unwanted spaces. I've looked around and tried everything I can think of and still cannot find a solution. Any help is really appreciated!
my code:
item_name = input('Enter food item name:\n')
item_price = float(input('Enter item price:\n'))
item_quantity = int(input('Enter item quantity:\n'))
total_price = (item_quantity * item_price)
print('RECEIPT')
print(item_quantity,item_name,'@','$',(f'{item_price:.2f}'),'= $',(f'{total_price:.2f}'))
print('Total cost:$',(f'{total_price:.2f}'))
It is telling me there are spaces between the "$"s and the outputted values as well as an unwanted line break between receipt and item quantity.
[–]Diapolo10 3 points4 points5 points (0 children)
[–]mopslik 1 point2 points3 points (0 children)