PYTHON CODE. KEEP OUTPUT SAME. Implement the following: Given:item1 = 'Pens' item2 = 'Pencils' price1 = 0.99 price2 = 1.5 Print two f-string statements to display the following according to the rules...


PYTHON CODE. KEEP OUTPUT SAME.


Implement the following:
Given:item1 = 'Pens'
item2 = 'Pencils'
price1 = 0.99
price2 = 1.5


Print two
f-string
statements to display the following according to the rules below:
1) Item prefixed with 'New markdown:'
2) Price prefixed with 'Buy one get one free: $'
3) Item always has
12 characters of space.
4) Price is always displayed with
two
decimal places.





Example Output

New Markdown: Pens        Buy one get one free: $0.99
New Markdown: Pencils    Buy one get one free: $1.50



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here