Computer Science, asked by StarboyCDj2009, 11 months ago

Print a number with 1 space in python

Answers

Answered by gauravarduino
0

Explanation:

Add spaces in python at the end of the string

## Add the space at end of the string in Python.

string1="Test String Trailing space to be added"

string_length=len(string1)+10 # will be adding 10 extra spaces.

string_revised=string1. ljust(string_length)

print string_revised.

Similar questions