+ 2

Is there an undo in programming? (Especially Python)

Can you undo changes to a list, dictionary, etc? Just asking as I’m a complete beginner.

1st Jan 2022, 3:27 AM
Interesting
Interesting - avatar
2 Answers
+ 4
Yes and no, you would need to make a history or backup list. To the best of my knowledge, there is no programming language that does this for you. In fact, adding this feature would probably require quite a bit of logic.
1st Jan 2022, 3:56 AM
deathbyandroid
deathbyandroid - avatar