Question: Python: Using a string and .format() method and three curly brackets, print the numbers: 1, 2, 3 each separated with a comma. Consider the following

Python:

Using a string and .format() method and three curly brackets, print the numbers: 1, 2, 3 each separated with a comma. Consider the following variables John=75, Ann=80 and Ally=60. Using a string and .format() method print the result that matches the correct values "Scores were as following:..." Write a format string that will take the following four element tuple:

( 2, 123.4567, 10000, 12345.67)

and produce:

'file_002 : 123.46, 1.00e+04, 1.23e+04'

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!