in , ,

If ChatGPT learned from Stack Overflow

If ChatGPT learned from Stack Overflow | python-memes, stack-memes, stack overflow-memes, list-memes, image-memes, overflow-memes, IT-memes, ide-memes | ProgrammerHumor.io
python-memes, stack-memes, stack overflow-memes, list-memes, image-memes, overflow-memes, IT-memes, ide-memes | ProgrammerHumor.io

Content

I want to sort a list alphabetically while also retaining the number ordering (1 2 10). How would I do this in Python? You shouldn’t use Python for this. Okay what would you suggest I use instead? S That’s a stupid question. I managed to solve this (see the image.png for how), but I ran into another issue. I’m reading files from a folder. I did find out how to make sure the file exist like below: from pathlib import Path file Path("pathtofile") if file.isfile: File exists But how do I make sure the files are not corrupted? This question has already been asked. That duplicate question wasn’t really related to this problem and it wasn’t even in Python. In the end I decided to just check for the corrupted files manually. New problem: I want to add timestamps (current time) to the output files, but I can’t get it to work consistently if some users are in different timezones. Is there someway to unify the output so timezone has no effect on the result? You should never do that. That’s just stupid.