If the price of one table is 3000. Find the price of 5 tables in python codr
Share
If the price of one table is 3000. Find the price of 5 tables in python codr
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Here comes the code for the question.
price_of_table=3000
number_of_tables=5
total_price=price_of_table*number_of_tables
print("Price of 1 table:",price_of_table,"rupees.")
print("Price of 5 tables:",total_price,"rupees.")
Answer:
price = 3000 #For 1 table as per question
print('Price of 5 tables = $' , price*5 )
Output:
Price of 5 tables = $15000
>>>
Hope this helps : )