Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Bonsai Trees

Liquid Web Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

9,168 questions

12,614 answers

573 users

How to align a number N characters to the right and fill the spaces with specific char in Python

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial


23 views
asked Nov 10, 2018 by avibootz
edited Nov 10, 2018 by avibootz

1 Answer

0 votes
n = 10000

n = format(n, "*>20")

print(n)


'''
run:

***************10000

'''

 




answered Nov 10, 2018 by avibootz
...