How do i move the first letter of a word to the end ?in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i move the first letter of a word to the end ?in python

14th Jul 2022, 4:39 PM
‏‪Abdulrhman Ragab‬
‏‪Abdulrhman Ragab‬ - avatar
1 Answer
+ 6
word = "hello" print(word[1:] + word[0]) elloh
14th Jul 2022, 4:44 PM
Slick
Slick - avatar