List Functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

List Functions

Good afternoon, has anyone solved the task called list functions in section 2.1 Functions? Please tell me how to remove items from the list Добрый день, кто нибудь решил задание под названием функции списка в разделе 2.1 Функции? Подскажите пожалуйста, как удалить элементы из списка

1st Jun 2021, 5:15 PM
Andrey Zinin
5 Answers
+ 3
Omg🥺. Sorry i'm stupid. English is not my native language. I wrote "remuve" for 20 minutes. You are great. Thank you so much ❤️
1st Jun 2021, 5:39 PM
Andrey Zinin
+ 1
I know, but when i use remuve, i could not choose max or min value in list
1st Jun 2021, 5:24 PM
Andrey Zinin
+ 1
Maybe it's only a typo in remove? https://code.sololearn.com/cyv30U34sZga/?ref=app
1st Jun 2021, 5:30 PM
Lisa
Lisa - avatar
0
You can use .remove() to remove a specific item or .pop() to remove an item at a specific index
1st Jun 2021, 5:21 PM
Lisa
Lisa - avatar
0
For example: i have numbers in list, but when write list.remuve(max) or remuve(max(list)) i have a mistake
1st Jun 2021, 5:27 PM
Andrey Zinin