User Profile
Collapse
-
It took me a while but I did figure it out, printing it out in pieces made it a lot easier, thanks for the advice! -
Grabbing the string 'hello' from a dictionary
Code:d = {'k1':[{'nest_key':['this is deep',['hello']]}]}
-
-
Reassigning 'Hello' in this nested list to say 'Goodbye'
list3 = [1,2,[3,4,'hello']]
I know the solution to this is: list3[2][2]='goodbye'
Why is this the solution? I don't understand why that is the answer and would appreciate an explanation, thank you!
No activity results to display
Show More
Leave a comment: