0
I'm not getting list.count (obj),list.remove ()
how to use it
2 Antworten
+ 1
For example, you have a list like that :
mylist = [1,2,3,'a']
and you want to count the 'a' in your list. You use to count it :
list.count('a')
and this gives you probably this output
1
In addition .count(), you can remove any obj. in your list using .remove()
mylist.remove('a')
and now your list will be like that:
[1,2,3]
You can use all of them in Terminal or you can code it.
Best
0
tq..😊