« first day (2500 days earlier)      last day (1078 days later) » 

00:58
given some Positions of values in a nested List, I'm interested in retrieving this value. e.g.

indices1 = [0,0] # "A"
indices2 = [0,1, 1] # "D"
lst = [['A', ['B', 'D']], 'C']


I now wan't to create a "getter" and "setter"

def get(interesting_list, indices: List[int]):
# I don't know this part, so multiple tries
return interesting_list[indices]

def set(interesting_list, indices: List[int], new_val):
interesting_list[indices] = new_val



in the end I want to call
get(lst, indices1)


I thought about using sth like
1 message moved from Python
given some Positions of values in a nested List, I'm interested in retrieving this value. e.g.
indices1 = [0,0] # "A"
indices2 = [0,1, 1] # "D"
lst = [['A', ['B', 'D']], 'C']


I now wan't to create a "getter" and "setter"


def get(interesting_list, indices: List[int]):
# I don't know this part, so multiple tries
return interesting_list[indices]


def set(interesting_list, indices: List[int], new_val):
interesting_list[indices] = new_val



in the end I want to call
get(lst, indices1)


I thought about using sth like
1 message moved from Python
 
3 hours later…
user17681953
03:38
Can somebody help me with this question I can't seem to figure this out please help me stackoverflow.com/questions/70438723/…
user17681953
Help me please
06:24
@NothingnessIsavirtue The room rules are you have to wait 48hrs before posting a question here. But in the meantime, please improve its formatting to make it clearer, that should help people understand it. I edited it a bit to help you.
user17681953
I think after what you did it's pretty clear to anyone who reads it and I can't wait 48 hrs can O
user17681953
You help eas
user17681953
I think after what you did it's pretty clear to anyone who reads it and I can't wait 48 hrs so can you help me
07:04
I've dropped a comment on the question on how you can make it better answerable.
But note that if you need help now, SO just isn't the right address.
People will answer your question when they have time and if it interests them.
 
3 hours later…
user17681953
user17681953
Updated question
user17681953
10:06
11 messages moved from Python
1 message moved from Python
 
3 hours later…
user13878937
13:21
Can someone please help me with this? stackoverflow.com/questions/70459987/…
1 message moved from Python
 
1 hour later…
user17681953
14:43
@NothingnessIsavirtue Yes, Google and other companies hoard user data. And there are tons of headlines about how that is a privacy concern. And there are ways to opt-out of some that data collection. Most users don't care. That's why we keep using Gmail, and Facebook, and Alexa, etc. If you want to find the location of YOUR computer, please put it in the OP. That way, you'll get appropriate replies, mostly relying on pre-existing services that do the most of the part for you. Getting accurate geo location from people connected to a website is an ethic problem with privacy concerns — phollox 3 hours ago
user17681953
-5
Q: What is the most accurate way of getting a computer's real world location?

Nothingness Is a virtueWhat is the most accurate way of a getting a computer's real world location in python. I want to get the most precise location of the pc the script is running on(like my pc for eg) : what I tried and possible solutions(most are not so accurate) : Location of ip address using geocoder module http...

2 messages moved from Python

« first day (2500 days earlier)      last day (1078 days later) »