Ask coding questions

← Back to all posts
Any way to do this (Python 3) without built in functions max(), and .index()
BhaiBhai

def LargestNumIndex(lst):
largest_num = max(lst)
largest_num_index = lst.index(largest_num)
return largest_num_index

Voters
BhaiBhai
Comments
hotnewtop
SixBeeps

You could go through that logic yourself. Here's some pythonic pseudocode: