marethamogale 0 Newbie Poster

iam doing a python program and the question reads:Write a program that asks the user about textbook prices and reports
how overpriced the textbooks are. (You may wish to read this number from the user with the input command. You can round numbers with the round command.) You should match the following output
How much do you want to pay for each textbook?50
How much did the average textbook actually cost?80
How many books did you buy?5

Each book is overpriced by $30 ( 60% )
You got ripped off by $150 total
You may assume that the user enters a positive integer for each input value above

and i need your help i tried doing it and bellow is my code:

total=0
textbooks=0
amount=0
price=0

raw_input("enter the amount you paid for each textbook")
raw_input("enter the average cost of the textbook")
raw_input("enter the total number of textbooks bought")

print"\t each textbook is overpriced by:",price,"amount"
print"\t you got ripped off by:",amount,total