0
How to print each statement in a new line when n>1?
The first line of the input contains a number n which represents number of lines From second line there are statements which has to be converted in upper case. Eaxh statement comes in new line. https://code.sololearn.com/cC72588F04NC/?ref=app
4 Respostas
+ 9
Hint: don't forget to use .join ;)
+ 1
If you need to print the statement as a single string you can use join keyword. You have to replace
" print(new_statement) " by
"print(" ".join(new_statement))".
In front of .join you have to put the joining symble space, hyphen, comma etc. In brackets put the list you want to join as a string.
+ 1
If you want to print each statement in a new line then put "\n" in front of .join
0
Thankyou ...it works!!