this post was submitted on 19 Nov 2024
1044 points (97.6% liked)
People Twitter
5258 readers
856 users here now
People tweeting stuff. We allow tweets from anyone.
RULES:
- Mark NSFW content.
- No doxxing people.
- Must be a tweet or similar
- No bullying or international politcs
- Be excellent to each other.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The reason why
string[5] = '5'
doesn't work is that strings in Python are immutable (cannot be changed). By doinglist(string)
you are actually creating a new list with the contents of the string and then modifying the list.I wonder if ChatGPT explains this or just tells you to do this... as this works but can be quite inefficient.
To me this highlights the danger with using AI... sure you can complete a task, but you may not understand why or learn important concepts.
Yeah, it's a gift and a curse for exploring a new domain. It can help you move faster, but you'll definitely loose some understanding you'd get from struggling on those topics longer.