Timeline for Convert string type array to array
Current License: CC BY-SA 3.0
25 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 23, 2016 at 0:15 | review | Close votes | |||
| Sep 27, 2016 at 0:05 | |||||
| Sep 22, 2016 at 19:08 | answer | added | Bruno Abud Cardoso | timeline score: 1 | |
| Sep 22, 2016 at 18:57 | vote | accept | Community Bot | ||
| Sep 22, 2016 at 18:55 | answer | added | HEADLESS_0NE | timeline score: 0 | |
| Sep 22, 2016 at 18:51 | answer | added | SilentLupin | timeline score: 0 | |
| Sep 22, 2016 at 18:48 | comment | added | Pavel Gurkov | Not relevant to the question, but I'd suggest changing the communication format if possible. | |
| Sep 22, 2016 at 18:47 | answer | added | Kevin | timeline score: 4 | |
| Sep 22, 2016 at 18:46 | comment | added | user5393628 | No, I receive this data as is through socket | |
| Sep 22, 2016 at 18:46 | comment | added | Moinuddin Quadri |
I am assuming, you have the above list, let's say my_list and another list as s. On doing my_list[0], it should execute s[8] = 5 and set 8th index of s as 8. Is it the case?
|
|
| Sep 22, 2016 at 18:43 | comment | added | user5393628 |
Array, print s[9] should print 7
|
|
| Sep 22, 2016 at 18:43 | comment | added | Maurice | You want us to turn that string into a dictionary with the left side of the equation as the key and the right side as the value? | |
| Sep 22, 2016 at 18:43 | comment | added | Kevin | Just to be clear, are you looking for an array, or a list? | |
| Sep 22, 2016 at 18:40 | comment | added | user5393628 |
Its definitely a string, couldn't edit it, it kept showing me error that its not formatted. So I can't add quotes. Expected output is as I said an array, S array where I can print s[0] and get it's value. S string should turn into actual python array
|
|
| Sep 22, 2016 at 18:36 | comment | added | Moinuddin Quadri | What is the expected output? please also mention that | |
| Sep 22, 2016 at 18:36 | comment | added | Moinuddin Quadri |
Then edit you answer to mentioned it as string. " around each item
|
|
| Sep 22, 2016 at 18:36 | comment | added | user5393628 | Yes, I have it as string | |
| Sep 22, 2016 at 18:35 | comment | added | Ari Gold | here is solved example with numpy | |
| Sep 22, 2016 at 18:35 | comment | added | user5393628 | I have this array, not sorted, each item have value, yes | |
| Sep 22, 2016 at 18:35 | comment | added | Pavel Gurkov | Is that a string in your code? | |
| Sep 22, 2016 at 18:35 | comment | added | Moinuddin Quadri | Are you sure it is the original chunk of code? | |
| Sep 22, 2016 at 18:35 | comment | added | Maurice | What kind of data-structure is that? It has the list brackets around it but contains notation to set key and value in a dict? | |
| S Sep 22, 2016 at 18:34 | history | edited | Moinuddin Quadri | CC BY-SA 3.0 |
added 158 characters in body
|
| Sep 22, 2016 at 18:34 | review | Suggested edits | |||
| S Sep 22, 2016 at 18:34 | |||||
| S Sep 22, 2016 at 18:29 | review | Triage | |||
| Sep 23, 2016 at 0:06 | |||||
| S Sep 22, 2016 at 18:29 | history | asked | user5393628 | CC BY-SA 3.0 |