Город МОСКОВСКИЙ
00:02:05

PYTHON EXERCISES Remove duplicates from a list

Аватар
Программистская Практика
Просмотры:
25
Дата загрузки:
02.12.2023 16:37
Длительность:
00:02:05
Категория:
Обучение

Описание

Simple Python exercise I did from Pset. Goal is simple - write a function to remove duplicates from a list. Design is this - we recieve a target list as function parameter, then create an empty list by filling in from FOR loop. We check if current element is in second list by calling "IF ELEMENT NOT IN SECONDLIST". In the end we just return new list. Hope it`ll help somebody
=====================================
SUBSCRIBE FOR MORE: http://goo.gl/bMexAI
=====================================

Рекомендуемые видео