SlideShare a Scribd company logo
cost = input("Enter the price of the dinner:)
rating - input("Enter the rating of the dinner")
tip = 0.0
if int(rating) == 1:
tip = 20.0
elif int(rating) == 2:
tip = 15.0
elif int(rating) == 3:
tip = 10.0
print float(cost)*(tip/100)
Solution
cost = input("Enter the price of the dinner:)
rating - input("Enter the rating of the dinner")
tip = 0.0
if int(rating) == 1:
tip = 20.0
elif int(rating) == 2:
tip = 15.0
elif int(rating) == 3:
tip = 10.0
print float(cost)*(tip/100)

More Related Content

More from aswrd

Due to persence of two large R groups which produ.pdf
                     Due to persence of two large R groups which produ.pdf                     Due to persence of two large R groups which produ.pdf
Due to persence of two large R groups which produ.pdf
aswrd
 
Probability of obtaining six =p= 15Probability of not obtaining s.pdf
Probability of obtaining six =p= 15Probability of not obtaining s.pdfProbability of obtaining six =p= 15Probability of not obtaining s.pdf
Probability of obtaining six =p= 15Probability of not obtaining s.pdf
aswrd
 
Solution.pdf
Solution.pdfSolution.pdf
Solution.pdf
aswrd
 
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdfReaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
aswrd
 
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdf
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdfNatalie is suffering form a disease called Cystic fibrosis. It is an.pdf
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdf
aswrd
 
I am sorry i could not see the problem. Please post again.Solu.pdf
I am sorry i could not see the problem. Please post again.Solu.pdfI am sorry i could not see the problem. Please post again.Solu.pdf
I am sorry i could not see the problem. Please post again.Solu.pdf
aswrd
 
b.false The alkanes are distinguished by having .pdf
                     b.false  The alkanes are distinguished by having .pdf                     b.false  The alkanes are distinguished by having .pdf
b.false The alkanes are distinguished by having .pdf
aswrd
 
In terms of structure A purine is a heterocyclic aromatic compound.pdf
In terms of structure  A purine is a heterocyclic aromatic compound.pdfIn terms of structure  A purine is a heterocyclic aromatic compound.pdf
In terms of structure A purine is a heterocyclic aromatic compound.pdf
aswrd
 
In virtually every decision they make, executives today consider som.pdf
In virtually every decision they make, executives today consider som.pdfIn virtually every decision they make, executives today consider som.pdf
In virtually every decision they make, executives today consider som.pdf
aswrd
 
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdfHeat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
aswrd
 
An Arrhenius acid is a substance that when added .pdf
                     An Arrhenius acid is a substance that when added .pdf                     An Arrhenius acid is a substance that when added .pdf
An Arrhenius acid is a substance that when added .pdf
aswrd
 
Five broad principles guide AARP’s evaluation of tax options. Propos.pdf
Five broad principles guide AARP’s evaluation of tax options. Propos.pdfFive broad principles guide AARP’s evaluation of tax options. Propos.pdf
Five broad principles guide AARP’s evaluation of tax options. Propos.pdf
aswrd
 
E(in ev) = 12400 ( in Ao) E = 12400 5400 = 2.296 ev E= 2.2.pdf
E(in ev) = 12400  ( in Ao) E = 12400  5400 = 2.296 ev E= 2.2.pdfE(in ev) = 12400  ( in Ao) E = 12400  5400 = 2.296 ev E= 2.2.pdf
E(in ev) = 12400 ( in Ao) E = 12400 5400 = 2.296 ev E= 2.2.pdf
aswrd
 
CsISolutionCsI.pdf
CsISolutionCsI.pdfCsISolutionCsI.pdf
CsISolutionCsI.pdf
aswrd
 
Conductance Conductance is the ability of a material to pass ele.pdf
Conductance  Conductance is the ability of a material to pass ele.pdfConductance  Conductance is the ability of a material to pass ele.pdf
Conductance Conductance is the ability of a material to pass ele.pdf
aswrd
 
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdfcalcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
aswrd
 
A. are aromatic because Benzene and Aromaticity.pdf
                     A. are aromatic  because  Benzene and Aromaticity.pdf                     A. are aromatic  because  Benzene and Aromaticity.pdf
A. are aromatic because Benzene and Aromaticity.pdf
aswrd
 
ASRASR is an expansive form of reaction between silica in aggrega.pdf
ASRASR is an expansive form of reaction between silica in aggrega.pdfASRASR is an expansive form of reaction between silica in aggrega.pdf
ASRASR is an expansive form of reaction between silica in aggrega.pdf
aswrd
 
Answer 1 Basic Earning per shareBasic Earning per share = BEBS.pdf
Answer 1  Basic Earning per shareBasic Earning per share = BEBS.pdfAnswer 1  Basic Earning per shareBasic Earning per share = BEBS.pdf
Answer 1 Basic Earning per shareBasic Earning per share = BEBS.pdf
aswrd
 
anlSolutionanl.pdf
anlSolutionanl.pdfanlSolutionanl.pdf
anlSolutionanl.pdf
aswrd
 

More from aswrd (20)

Due to persence of two large R groups which produ.pdf
                     Due to persence of two large R groups which produ.pdf                     Due to persence of two large R groups which produ.pdf
Due to persence of two large R groups which produ.pdf
 
Probability of obtaining six =p= 15Probability of not obtaining s.pdf
Probability of obtaining six =p= 15Probability of not obtaining s.pdfProbability of obtaining six =p= 15Probability of not obtaining s.pdf
Probability of obtaining six =p= 15Probability of not obtaining s.pdf
 
Solution.pdf
Solution.pdfSolution.pdf
Solution.pdf
 
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdfReaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
Reaction 1 is a redox reaction. Na is oxidized while Cl is reduced..pdf
 
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdf
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdfNatalie is suffering form a disease called Cystic fibrosis. It is an.pdf
Natalie is suffering form a disease called Cystic fibrosis. It is an.pdf
 
I am sorry i could not see the problem. Please post again.Solu.pdf
I am sorry i could not see the problem. Please post again.Solu.pdfI am sorry i could not see the problem. Please post again.Solu.pdf
I am sorry i could not see the problem. Please post again.Solu.pdf
 
b.false The alkanes are distinguished by having .pdf
                     b.false  The alkanes are distinguished by having .pdf                     b.false  The alkanes are distinguished by having .pdf
b.false The alkanes are distinguished by having .pdf
 
In terms of structure A purine is a heterocyclic aromatic compound.pdf
In terms of structure  A purine is a heterocyclic aromatic compound.pdfIn terms of structure  A purine is a heterocyclic aromatic compound.pdf
In terms of structure A purine is a heterocyclic aromatic compound.pdf
 
In virtually every decision they make, executives today consider som.pdf
In virtually every decision they make, executives today consider som.pdfIn virtually every decision they make, executives today consider som.pdf
In virtually every decision they make, executives today consider som.pdf
 
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdfHeat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
Heat released by 0.025 mol of H3PO4 = 525 JHeat released by 2 mole.pdf
 
An Arrhenius acid is a substance that when added .pdf
                     An Arrhenius acid is a substance that when added .pdf                     An Arrhenius acid is a substance that when added .pdf
An Arrhenius acid is a substance that when added .pdf
 
Five broad principles guide AARP’s evaluation of tax options. Propos.pdf
Five broad principles guide AARP’s evaluation of tax options. Propos.pdfFive broad principles guide AARP’s evaluation of tax options. Propos.pdf
Five broad principles guide AARP’s evaluation of tax options. Propos.pdf
 
E(in ev) = 12400 ( in Ao) E = 12400 5400 = 2.296 ev E= 2.2.pdf
E(in ev) = 12400  ( in Ao) E = 12400  5400 = 2.296 ev E= 2.2.pdfE(in ev) = 12400  ( in Ao) E = 12400  5400 = 2.296 ev E= 2.2.pdf
E(in ev) = 12400 ( in Ao) E = 12400 5400 = 2.296 ev E= 2.2.pdf
 
CsISolutionCsI.pdf
CsISolutionCsI.pdfCsISolutionCsI.pdf
CsISolutionCsI.pdf
 
Conductance Conductance is the ability of a material to pass ele.pdf
Conductance  Conductance is the ability of a material to pass ele.pdfConductance  Conductance is the ability of a material to pass ele.pdf
Conductance Conductance is the ability of a material to pass ele.pdf
 
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdfcalcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
calcium chloride (CaCl2) is the ionic compoundCO2 , CS2 , SO2 and .pdf
 
A. are aromatic because Benzene and Aromaticity.pdf
                     A. are aromatic  because  Benzene and Aromaticity.pdf                     A. are aromatic  because  Benzene and Aromaticity.pdf
A. are aromatic because Benzene and Aromaticity.pdf
 
ASRASR is an expansive form of reaction between silica in aggrega.pdf
ASRASR is an expansive form of reaction between silica in aggrega.pdfASRASR is an expansive form of reaction between silica in aggrega.pdf
ASRASR is an expansive form of reaction between silica in aggrega.pdf
 
Answer 1 Basic Earning per shareBasic Earning per share = BEBS.pdf
Answer 1  Basic Earning per shareBasic Earning per share = BEBS.pdfAnswer 1  Basic Earning per shareBasic Earning per share = BEBS.pdf
Answer 1 Basic Earning per shareBasic Earning per share = BEBS.pdf
 
anlSolutionanl.pdf
anlSolutionanl.pdfanlSolutionanl.pdf
anlSolutionanl.pdf
 

Recently uploaded

ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 

Recently uploaded (20)

ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 

cost = input(Enter the price of the dinner)rating - input(Ent.pdf

  • 1. cost = input("Enter the price of the dinner:) rating - input("Enter the rating of the dinner") tip = 0.0 if int(rating) == 1: tip = 20.0 elif int(rating) == 2: tip = 15.0 elif int(rating) == 3: tip = 10.0 print float(cost)*(tip/100) Solution cost = input("Enter the price of the dinner:) rating - input("Enter the rating of the dinner") tip = 0.0 if int(rating) == 1: tip = 20.0 elif int(rating) == 2: tip = 15.0 elif int(rating) == 3: tip = 10.0 print float(cost)*(tip/100)