Computer Science, asked by sushil240284, 10 months ago

by using ––––––– in a print statement, the items are printed without any spaces between them​

Answers

Answered by mariospartan
8

By using "{}" we can print text without any spaces

Explanation:

In python, we can't print values in any specified format. By "default the print statement prints as the text is given inside the quotation marks".

Eg. print 'The Value is "', value, '"'

Suppose, if you would like to print the output in the form which you need, then formatted output comes to help you out. The below given code will help you to print the values without any space.

print 'The Value is "{}"'.format(value)

To Know More:

1. https://brainly.in/question/15926997

Explain the purpose of using the print statement in python with appropriate example

2. https://brainly.in/question/13284980

Difference between return statement and print statement in python?​

Answered by bhagyalaxmipradhan19
0

Answer:

the correct answer is '{}'

Similar questions