Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 34)
34.
How can you print a table of values with aligned columns?
print_table(values)
for value in values: print(f"{value:<10}")
table_print(values)
print(f"{values:<10}")
Answer: Option
Explanation:
To print a table of values with aligned columns, use a loop and f-string formatting with alignment.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.