Question: 1. Write a code segment that displays the values of the integers x, y, and z on a single line, such that each value is
1. Write a code segment that displays the values of the integers x, y, and z on a single line, such that each value is right-justified with a field width of 6.
2. Write a format operation that builds a string for the float variable amount that has exactly two digits of precision and a field width of zero.
3. Write a loop that outputs the numbers in a list named salaries. The outputs should be formatted in a column that is right-justified, with a field width of 12 and a precision of 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
