Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse(list):
- #@param list: List
- #@return none
- newList=[]
- for i in range(len(list)-1,-1,-1):
- newList.append(list[i])
- return newList
- def count(list,som):
- #@param list: List
- #@param som: All type of data
- #@return Int
- count=0
- for i in range(0,len(list)):
- if list[i]==som:
- count=count+1
- return count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement