.zfill() to add trailing zeros if parameter is negative

Jan. 10, 2020
5:06 p.m.
H e l l o t o e v e r y o n e ! I d l i k e t o s u g g e s t . z f i l l ( ) t o h a v e a n o p t i o n a l p a r a m e t e r ( t h a t d e f a u l t s t o 0 ) s o t h e f i l l i n g c h a r a c t e r c o u l d b e c u s t o m i z e d . A n d s i n c e i t c u r r e n t l y d o e s n o t h i n g i f g i v e n a n e g a t i v e p a r a m e t e r , i t c o u l d m a y b e a d d t r a i l i n g z e r o e s ( o r t h e s e l e c t e d c h a r a c t e r ) . T h a n k y o u v e r y m u c h . A n t o n i o
1895
Age (days ago)
1895
Last active (days ago)
1 comments
2 participants
participants (2)
-
Antonio Carlos Jorge Patricio
-
MRAB