0

Rearranging Output in a Continuous String

I am 99% done with the pig latin code solution, but I am having one last issue. Might be really simple, but my string prints something like this: histay siay igpay atinlay However, what I need is: histay isay igpay atinlay super stoked on having come this far, does anyone mind giving me a hint on the last bit? Not even necessarily copy-paste code, but rather just the necessary operators/commands. Thanks! https://code.sololearn.com/c254McR4z7Fe/?ref=app (EDIT: I have a solution, but I dont know what this end function actually does or how it applies to other code in the future so if someone could fill me in that would be awesome!)

17th Jun 2020, 4:44 PM
Randy Ziegler
Randy Ziegler - avatar
4 Antworten
+ 3
passing end as an argument to print function print( indiv_word[1:]+indiv_word[:1]+"ay",end=" ")
17th Jun 2020, 4:50 PM
Abhay
Abhay - avatar
+ 1
I dont think ive learned that yet, do you mind explaining what that does a bit further? Thanks!
17th Jun 2020, 4:53 PM
Randy Ziegler
Randy Ziegler - avatar
+ 1
nvm, a simple google search did the trick, thank you so much!
17th Jun 2020, 5:01 PM
Randy Ziegler
Randy Ziegler - avatar
+ 1
👍
17th Jun 2020, 5:10 PM
Abhay
Abhay - avatar