i’ve watched the video matched the code it will not do the math or render the description, i get no errors and have gone through the code multiple times, what am i missing?
lovely_loveseat_description = "Lovely Loveseat. Tufted polyester blend on wood. 32 inches high x 40 inches wide x 30 inches deep. Red or white.\n"
lovely_loveseat_price = '254.00'
stylish_settee_description = "Stylish Settee. Faux leather on birch. 29.50 inches high x 54.75 inches wide x 28 inches deep. Black"
stylish_settee_price = '180.50'
luxurious_lamp_descrption = "Luxurious Lamp. Glass and iron. 36 inches tall. Brown with cream shade."
luxurious_lamp_price = '52.15'
sales_tax = '0.888'
customer_one_total = '0'
customer_one_itemization = ""
customer_one_total += 'lovely_loveseat_price'
customer_one_itemization += "lovely_loveseat_description"
customer_one_total +='luxurious_lamp_price'
customer_one_itemization +="luxurious_lamp_description"
customer_one_tax = ('customer_one_total * Sales_tax')
customer_one_total += 'customer_one_tax'
print('Customer one items:')
print("customer_one_itemization")
print('Customer one total')
print('customer_one_total')
You should have another look at the instructions and review your code step-by-step.
Here are a few issues with the code you have have posted:
Strings are meant to be assigned to the variables lovely_loveseat_description (and other variables holding the description). You have done that. But, strings are not meant to be assigned to the variables such as lovely_loveseat_price (and the other variables involving price). Instead they should be assigned numbers. The instructions do not mention that the prices are meant to be stored as strings.
// You wrote:
lovely_loveseat_price = '254.00'
// It should be:
lovely_loveseat_price = 254.00
// Same issue with the variables stylish_settee_price, luxurious_lamp_price,
// sales_tax, customer_one_total, customer_one_tax
A sales tax of 0.888 or 88.8% doesn’t seem correct. Re-visit the step where the tax is mentioned.
If you want to add the price of an item to the total, then
lovely_loveseat_description is the name of the variable. The value assigned to this variable is meant to be a string i.e. "Lovely Loveseat. Tufted...", but the name of the variable can’t be a string.
// You wrote:
print('Customer one items:')
print("customer_one_itemization")
// It should be:
print('Customer one items:') // We want to print the string
print(customer_one_itemization) // We want to print the value assigned to variable
print('customer_one_itemization')
// would print the string
"customer_one_itemization"
print(customer_one_itemization)
// would print the value assigned to this variable
"Lovely Loveseat. Tufted.."
yes i went back and just retyped everything and paid more close attention to the syntax errors and i got it to fully work yesterday, however I greatly appreciate your detailed explanation it has helped me figure out where i keep going wrong it is all the ",',: and other parts to make strings variables and such.
thank you so much