print(''.join(sorted(i)), end=' ') | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

print(''.join(sorted(i)), end=' ')

In this what is the Meaning of 'end' in the last... Plzzz tell me clearly what is the purpose of "end" there

15th Sep 2020, 6:20 AM
Naveen
Naveen - avatar
4 Answers
+ 1
Naveen , the meaning is literally what it says. It gives us the choice on how to end the sentence. 'Naveen' would end the statement as Naveen, i = ["8","3","2"] print(''.join(sorted(i)), end='Naveen') 238Naveen [Program finished]
16th Sep 2020, 1:14 AM
Subham
Subham - avatar
+ 5
By default print function has newline as end , here you are changing it to ' '.
15th Sep 2020, 6:27 AM
Hima
Hima - avatar
+ 2
Use google
15th Sep 2020, 6:45 AM
Namit Jain
Namit Jain - avatar
0
Subham tq it is a very nice explanation
16th Sep 2020, 5:07 AM
Naveen
Naveen - avatar