• Register
1 vote
30 views

Problem:

I am beginner in python programming language and I am following an online course  and doing my coding practice. 
I have a question how can I give space between two lines in python or how can I print a blank line in python?

 

10 7 2
6,060 points

Please log in or register to answer this question.

1 Answer

1 vote

Answer:

To execute a blank line or to give space between two line or print an empty line in your python program you should use :

print("\n")

For example I wrote this code :

def Work(worker):
    print("Its an oder to you")
    print("Please do the work" + " " + worker  )
    print("In one day\n")
    

Work('Piers')
Work('Illiana')

and you will get the output:

Its an oder to you
Please do the work Piers
In one day

Its an oder to you
Please do the work Illiana
In one day
11 6 4
34,950 points

Related questions

0 votes
1 answer 5 views
5 views
Problem: Show me the method for creating a space in html between two words.
asked Apr 10 zayed1 58.7k points
0 votes
1 answer 5 views
5 views
Problem: Someone show me the way to give space between two links in html.
asked Apr 10 zayed1 58.7k points
0 votes
1 answer 3 views
3 views
Problem: I tried to find out the solution on the web when I faced this problem but I did not get any fruitful information that I can continue if you read the above question and understand what is the solution of this please cooperate with Me- Than.
asked Apr 1 zayed1 58.7k points
0 votes
1 answer 4 views
4 views
Problem: I'm having some crisis, but I'd prefer it if anyone could help me. “How to give space between two numbers in c?”
asked Mar 31 zayed1 58.7k points
0 votes
1 answer 9 views
9 views
Problem: I want to add spacing between the images. It could be vertical or horizontal. I just need to learn it for the basics. Please clarifiy it with examples.
asked Oct 13, 2020 Ahsan 1.8k points
0 votes
1 answer 2 views
2 views
Problem: I am having problem for spaces between lines in html. Can someone tell the solution?!
asked Mar 27 Madhav96 2.3k points
0 votes
1 answer 2 views
2 views
Problem: Did not find out of Intersection of two parametric lines in 3d so someone help me?
asked Apr 13 jamuna1 30.2k points
0 votes
1 answer 10 views
10 views
Problem: Please tell me how to check if two lines intersect?
asked Apr 3 Ifra 34.7k points
0 votes
1 answer 5 views
5 views
Problem: How do I Find distance between points in 3D space using correct optimization algorithm C++
asked Apr 21 ummesalma 29.2k points
0 votes
1 answer 2 views
2 views
Problem: I am stuck now .. need some suggestions .. please help me .. how to add space between two string in java
asked Apr 7 Ifra 34.7k points