DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
f string add 0 before python
import random for i in [25,300,478,2,1000]: print(f"{i:04d}") # output: 0025 0300 0478 0002 1000
PREVIOUS
NEXT
Tagged:
#string
#add
#python
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit