Skip to content
Advertisement

Practising python list and if

When i was practising list&if in python i got stuck with a problem

JavaScript

the code is above works fine but when i want to improve it with already existing friends and not having that friend i got stuck and having this error = if add in list: TypeError: argument of type ‘type’ is not iterable same goes to not having that friend to remove

JavaScript

Advertisement

Answer

try this

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement