0

I'm not getting list.count (obj),list.remove ()

how to use it

27th Nov 2016, 11:05 AM
Zameer shaikh
Zameer shaikh - avatar
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
27th Nov 2016, 7:00 PM
Miraç Akif Merttürk
Miraç Akif Merttürk - avatar
0
tq..😊
28th Nov 2016, 4:41 AM
Zameer shaikh
Zameer shaikh - avatar