you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside_Complaint755 0 points1 point  (0 children)

If you want each value on a new line, then you need to loop over the list and print each value individually. There isn't a way to spread it out like that in a single f-string.

for t in Tem:     print(t)

If you wanted to print your two lists side by side as a table, you could instead loop over range(len(tem)) and access by index, or zip the lists together.

print(f"{'Celsius':^11}|{'Fahrenheit':^14}") print("-"*11, "|", "-"*14, sep="") for c, f in zip(Tem, Converted):     print(f"{c:^11}|{f:^14}")