Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

F-Strings decilamal places

#!/usr/bin/env python3

for x in range(1, 11):
    print(f'{x:02} {x*x:3} {x*x*x:4}')
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #decilamal #places
ADD COMMENT
Topic
Name
2+1 =