0

[Python] How to add all symbols of string to array (for example, all letters of word or all digits of number as array elements)?

22nd Jun 2020, 9:14 AM
🇭🇺 Rómányi Téčka 🇭🇺
🇭🇺 Rómányi Téčka 🇭🇺 - avatar
8 Answers
+ 5
Where does your input come from? Is it from a file, from excel?, or is it somewhere manually input? Is your input really 53,3045747, 25,8013820 or '53,3045747', '25,8013820'? The issue is that the separator is the same character as the decimal separator. We can handle this, but just to make sure about input.
22nd Jun 2020, 1:30 PM
Lothar
Lothar - avatar
+ 4
Rómányi Téčka, as I said: please make us samples of input and output. Thanks!
22nd Jun 2020, 12:11 PM
Lothar
Lothar - avatar
+ 3
Before we can help you, please do a try by yourself. Place the code in playground, and link it here. It is also a good idea to make us a sample how the input looks like, and what output you expect. Thanks!
22nd Jun 2020, 9:33 AM
Lothar
Lothar - avatar
0
Lothar so i should input geographic coordinates, add all symbols to array and replace items to another
22nd Jun 2020, 9:58 AM
🇭🇺 Rómányi Téčka 🇭🇺
🇭🇺 Rómányi Téčka 🇭🇺 - avatar
22nd Jun 2020, 12:22 PM
🇭🇺 Rómányi Téčka 🇭🇺
🇭🇺 Rómányi Téčka 🇭🇺 - avatar
0
Bagon Thank you very much! I also set a loop to print only array elements.
22nd Jun 2020, 1:22 PM
🇭🇺 Rómányi Téčka 🇭🇺
🇭🇺 Rómányi Téčka 🇭🇺 - avatar