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
Get step-by-step solutions from verified subject matter experts
