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!)
4 Respuestas
+ 3
passing end as an argument to print function
print( indiv_word[1:]+indiv_word[:1]+"ay",end=" ")
+ 1
I dont think ive learned that yet, do you mind explaining what that does a bit further? Thanks!
+ 1
nvm, a simple google search did the trick, thank you so much!
+ 1
👍