0

Help me plz with python

I can’t understand how to write a code, which will shift all the characters in the input line exactly on one index. If you didn’t understand what i said, i will explain : i have chain of numbers and i want to shift it and add number on 0 index, so all other number will increase on 1 point May be my request is very stupid, but i am just a beginner

5th Sep 2018, 6:59 PM
Nikita Kiselev
Nikita Kiselev - avatar
3 odpowiedzi
+ 1
Is this what you're after? https://code.sololearn.com/c5rd2bVzmGft/?ref=app Otherwise it's listName.insert(0, 0)
5th Sep 2018, 11:54 PM
benjamin
+ 1
x="0"+x
5th Sep 2018, 7:10 PM
VcC
VcC - avatar
0
Yes, thanke you very much
6th Sep 2018, 6:00 AM
Nikita Kiselev
Nikita Kiselev - avatar