Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

F-Strings decilamal places

#!/usr/bin/env python3

s1 = 'a'
s2 = 'ab'
s3 = 'abc'
s4 = 'abcd'

print(f'{s1:>10}')
print(f'{s2:>10}')
print(f'{s3:>10}')
print(f'{s4:>10}')
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #decilamal #places
ADD COMMENT
Topic
Name
6+8 =