this post was submitted on 19 Nov 2024
1066 points (97.7% liked)

People Twitter

5396 readers
627 users here now

People tweeting stuff. We allow tweets from anyone.

RULES:

  1. Mark NSFW content.
  2. No doxxing people.
  3. Must be a pic of the tweet or similar. No direct links to the tweet.
  4. No bullying or international politcs
  5. Be excellent to each other.
  6. Provide an archived link to the tweet (or similar) being shown if it's a major figure or a politician.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] pnutzh4x0r@lemmy.ndlug.org 12 points 1 month ago (1 children)

The reason why string[5] = '5' doesn't work is that strings in Python are immutable (cannot be changed). By doing list(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.

[โ€“] jacksilver@lemmy.world 2 points 1 month ago

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.