0
How do I use 'remove' function, 'count' function and 'reverse' fuction in python
2 Respostas
+ 10
bernard ,
I wonder why you don't google. you can find tons of good examples.
here are examples from me:
all_nums = [0, 113, 1, 8 ,0, 34]
print(all_nums)
all_nums.remove(113)
print(all_nums)
all_nums = [0, 113, 1, 8 ,0, 34]
print(all_nums.count(0))
all_nums = [0, 113, 1, 8 ,0, 34]
all_nums.reverse()
print(all_nums)
0
Thanks