Formatting your floats in Python

preview_player
Показать описание
This two-minute video will teach you how to format floating point numbers in Python.
Рекомендации по теме
Комментарии
Автор

Hi, appreciate this. I wonder how to right align several lines of floating numbers (if each doesn't uniformly have number of decimals in it) such that all the decimal point are all vertically alligned ? for instance 4.5698, 10.11 and 78958.656 how am I gonna format it so that the decimal point will all vertically allign when I print these floating numbers ? having a hardtime finding it in the documentation. Thanks in advance.

Queruwk