python find index of highest value in list
numbers = [5, 4, 7, 3, 9, 1, 2] biggest_number = max(numbers) print(numbers.index(biggest_number))
python find index of highest value in list
numbers = [5, 4, 7, 3, 9, 1, 2] biggest_number = max(numbers) print(numbers.index(biggest_number))
return the biggest even fro a list python
b=[10,30,40,88,77,99,12515,365,959,48,8595,95,9,59,59,5,9,9,49,5,548485844842] def is_even(lis) : i=len(lis)-1 lis.sort() while max(lis)%2!=0: i=i-1 if lis[i]%2==0: break return lis[i] print(is_even(b))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us