String conversion | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

String conversion

How do you convert numerical strings to alphabets

22nd Feb 2020, 7:35 AM
Ojurongbe Yusuf
4 Answers
+ 4
Assume that num as string. Python - - > str(num) Ruby - - > num.to_s C# - - > num.ToString() or num as string; Java - - > String.valueOf(num) or Integer.toString(num);
22nd Feb 2020, 8:22 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
0
Please add a tag with language 😉
22nd Feb 2020, 7:37 AM
Oma Falk
Oma Falk - avatar
0
Hi! You mean this? 1 -> one 2 -> two : . 9 -> nine
22nd Feb 2020, 7:43 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
You can refer to this code... if you want 1 --> one 2 ---> two . . . if you mean "12/2" to 12/2==6 put it inside eval() or "13" to 13 put it inside int() https://code.sololearn.com/cCjeVCkyhT9x/?ref=app
22nd Feb 2020, 7:47 AM
Utkarsh Sharma
Utkarsh Sharma - avatar