Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

f-string allows you to customize the presentation type of a value in text form # Run this example number - 1/51 print (f without format

f-string allows you to customize the presentation type of a value in text form

image text in transcribed

# Run this example number - 1/51 print (f without format specification: {number)' ) print(f'with format specification (2 decimal places): {number: print (t with format specification (7 decimal places): {number: . print (f with format specification (multiply by 2, 3 decimal places): (number*2: without format specification: e. 0196078431372549 with format specification (2 decimal places): e. 02 with format specification (7 decimal places): .eIg67d with format specification (multiply by 2, 3 decimal places): e. 039 Now, change your complaint email to calculate the actual amount refunded to a precision Of 2 decimal places. Here's a sample input-output sequence: > The Customer name is: Alan Mathison Turing > The return item is: Nintendo Switch > cost of item: 279.99 > Dear Alan Mathison Turing, > I am sorry to hear that we were not administrative cost. The total amount > Sincerely, > Customer Support # Your solutions here # step I: Use input to ask for name, customer name: name item # YOUR CODE HERE cost - # YOUR CODE HERE i ten, able to meet your expectation. We will refund your Nintendo Switch after deducting charged back to you will be: $265.99 and cost # step 2: use f-string to format print statement # Finish the print statement using an fstring so it prints a message tike the one in the example. # use multiple print() or the newline character In to print on multiple lines if needed. print()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions