Question: 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

# Run this example number - 1/51 print (f without format specification:

# 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!