Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def func_one(list_param):
- i=0
- j=0
- max_leng=0
- new_lst=[]
- for i in range(i, len(list_param), 1):
- for i in range(i, len(list_param), 1):
- if len(new_lst)==0 :
- new_lst.append(list_param[i])
- elif new_lst[-1]<float(list_param[i] or 0):
- new_lst.append(list_param[i])
- if max_leng<len(new_lst):
- max_leng=len(new_lst)
- new_lst.clear()
- return max_leng
- lst = [0, 2, 1, 6, 8, 3, 14, 5]
- lst_2=[88, 90, 77, 55, 6, 42, 9, 8, 88, 18, 33, 36, 23, 81, 30, 54.2, 37, 46, 34, 20, 22, 54, 87, 73, 17, 52, 57, 61, 55, 5, 61, 51, 53, 20, 5, 29, 13, 42, 35, 15, '15.2', 60, 32, 81, 63, 49, 73, 77, 23, 91, 1, 48, 33, 35, 70, 7, 10, 33, 3, 7, 46, 66, 16, 4, 60, 65, 43, 28, 35, 26, 84, 84, 88, 48, 63, 6, 61, 15, 70, 57, 64, 77, None, 33, 30, 24, 65, 55, 100, 22, 47, 44, 64, 94, 76, 19, 74, 85, 37, 41, 95, 18]
- print(func_one(lst))
- print(func_one(lst_2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement