How to add space in a integer
input -->123456789
output —> 1 2 3 4 5 6 7 8 9
how i code it in python?
How to add space in a integer
input -->123456789
output —> 1 2 3 4 5 6 7 8 9
how i code it in python?
Iterate over the string input and keep printing with additional space.
Use list comprehension:(Pythonic way)
print(' '.join([i for i in input()]))