Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I print spaces before string in python?

n = 5
i = 0
for i in range(n):
    print("   _~_  \n  (o o)  \n /  V  \  \n/(  _  )\ \n  ^^ ^^  \n")

For some reason it doesn’t work and I don’t know why.
I am new to python and I couldn’t find the solution on the Internet
Also please let me know if there’s a better way of printing this

I expect it to print
this

(It told me that I need to wait 3 days before asking again.
I know that I messed up this question somehow and I have no idea why cause people just downvote without explaining anything)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Output tag.
enter image description here
There is already an output for this code. Not sure why wasting others time.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading