0

Do any one know how to write a string backwards like 'bro' to "orb"

Well My course is python Please help

13th Oct 2022, 6:23 PM
Saswat Sahu 8432
Saswat Sahu 8432 - avatar
5 odpowiedzi
+ 4
'bro'[::-1] Your try?????? learn about list slicing..
13th Oct 2022, 6:25 PM
Jayakrishna 🇮🇳
+ 4
Actually I was so confused and Nervous I wrote Print (bro = backward) 😅😅
13th Oct 2022, 6:26 PM
Saswat Sahu 8432
Saswat Sahu 8432 - avatar
+ 4
May be you forgot you are talling to machine, not the human.. 🤔. Don't be nervous but be carefull..
13th Oct 2022, 6:35 PM
Jayakrishna 🇮🇳
+ 3
Ok thanks
13th Oct 2022, 6:35 PM
Saswat Sahu 8432
Saswat Sahu 8432 - avatar
0
You can try some library functions if your language is python like Reversed (<variable>) To do this you should convert or change the string to a list
15th Oct 2022, 5:42 PM
ChetAn RAo
ChetAn RAo - avatar