0
How to give a newline in this input function??
alot confused
3 odpowiedzi
+ 7
Just use \n for the new line.
ste = input("Enter a Word \n")
print(ste)
+ 6
You can import fileinput package to do that. You have to give every input in a new line.
Try this:-
import fileinput
for line in fileinput.input():
print(line)
Fileinput Infomation :-
https://docs.python.org/2/library/fileinput.html
0
suppose i want my output as
enter a word:
ayush
bhushan