Why would someone use certain list function commands? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why would someone use certain list function commands?

If someone wanted to change an item in their list, for example, they wanted to remove an item, then why would they use a command? They could easily just quickly go to the list and physically change it. They might only want to change it because of an error, but the error specifies the line of where the confusion is.

1st Sep 2020, 1:59 PM
abhy118
abhy118 - avatar
1 Antwort
+ 7
It would be great, if you can give us a sample, and a description what task has to be applied. Thanks! Your suggestion how to modify or remove an item from a list by just doing it in the source code has some limitations. In real live, you will have dynamically created data or you read data from a file. In all this cases, you can only modify data / items by using functions, methods or just by applying a snippet of code.
1st Sep 2020, 2:24 PM
Lothar
Lothar - avatar