I have a function that accepts user input iterate through it and print out the output in the same line. But the output joined together with the file name when the print new line set to (e = ”)
Please help
def twttr(arr):
for arr1 in arr:
print(arr1, end = ”)
twttr(input(‘Enter a text here: ‘))
#output Hi brocoke
#expected output Hi bro
New contributor
Ibrahim sallieu Kamara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.