Question: Assume the variables str1, str2, and str3 have each been assigned a string. Write a statement that uses the print function and an F-string to
Assume the variables str1, str2, and str3 have each been assigned a string. Write a statement that uses the print function and an F-string to display the value of str1, immediately followed by the value of str2, immediately followed by the value of str3. The value of str1 should be left aligned in a field that is a minimum of 12 spaces wide. The value of str2 should be center aligned in a field that is a minimum of 10 spaces wide. The value of str3 should be right aligned in a field that is a minimum of 12 spaces wide.
Step by Step Solution
There are 3 Steps involved in it
Certainly We need to print the three strings str1 str2 and str3 with specific alignment and width re... View full answer
Get step-by-step solutions from verified subject matter experts
