Stack Exchange
log in
users (13)
rooms (17)
faq
Tyto
general
recent
conversations
Python
Room rules:
sopython.com/chatroom
Code formatting guide:
tinyu...
9
Tyto
Dec 3, 2018 05:09
yes that works...nice @JoranBeasley
Tyto
Dec 3, 2018 05:00
you can create another dictionary which will input the values from the list of items which you have..
Tyto
Dec 3, 2018 04:59
so for each flat_id you are trying to retrieve every other fields?
Tyto
Dec 3, 2018 04:50
okay
Tyto
Dec 3, 2018 04:49
you can parse it with json library
Tyto
Dec 3, 2018 04:49
@AymonFournier, what is it that you are actually trying to do?
Tyto
Nov 30, 2018 12:56
@Thewise, surely we could come up with some other solution as well...
Tyto
Nov 30, 2018 12:52
@Thewise, in your tmp_tx list you are only returning the values which have a tx_receipt _status as not 0. so why can't use some other unique identifier at this point itself to not receive money back from the same account?
Tyto
Nov 30, 2018 12:20
@Thewise can u show us the code where you are having the difficulty..
Tyto
Nov 30, 2018 07:42
@AkhilAlexander usually pickling means converting a data structure such as list into a character stream..
Tyto
Nov 29, 2018 13:18
@Employee do u have a text or json output for the same?
Tyto
Nov 28, 2018 16:05
But what @W.Dodge has given is more pythonic way,I must say...
Tyto
Nov 28, 2018 16:05
@Andie31 If you'll luk at my solution it's almost similar to what @W.Dodge has given. But it's more decoupled for your understanding, I guess...
Tyto
Nov 28, 2018 13:22
try this and let me know if it works...
Tyto
Nov 28, 2018 13:22
so your name value would be y[0]['name']
Tyto
Nov 28, 2018 13:22
@Andie31
Tyto
Nov 28, 2018 13:22
let's say your dictionary is x...now first if we parse through the key 'data' of x, let's say that gives us 'y'.
Tyto
Nov 28, 2018 13:16
@Andie31 can u paste the full dict key which you are trying to parse?
Tyto
Oct 2, 2018 06:23
@PM2Ring yes learning that way really helps..
Tyto
Oct 2, 2018 06:08
@PM2Ring by sensible english text did u mean similar type of data
Tyto
Oct 2, 2018 06:06
try to work on it @user2277747, u will get it...no rocket science though
Tyto
Oct 2, 2018 06:05
That seems like an exam or weekly test question to me
Tyto
Oct 2, 2018 05:50
@PM 2Ring Pigeon Hole Principle is nice