Posts by hiperbolt • 71 points
3 posts
-
-1
votes2
answers4092
viewsA: How to convert a list to string and vice versa?
I found the answer! >>> import ast >>> x = u'[ "A","B","C" , " D"]' >>> x = ast.literal_eval(x) >>> x ['A', 'B', 'C', ' D'] >>> x = [n.strip() for n in…
-
1
votes2
answers4092
viewsQ: How to convert a list to string and vice versa?
I have a list: ('47075', 'josenestle', 'i need help') I do str1 = str(list) and have it in string. However if you do list(str1) I do not recover my list. I find no obvious solution, help would be…
-
6
votes1
answer1969
viewsQ: How to receive multiple socket requests on one server?
Hello! I’m doing a server/ client schema program in Python in which I wanted to have only one server and several clients. Imagine having 3 clients each make a request to the server via socket…