diff options
Diffstat (limited to 'challenge-182/lubos-kolouch/python/ch-1.py')
| -rw-r--r-- | challenge-182/lubos-kolouch/python/ch-1.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-182/lubos-kolouch/python/ch-1.py b/challenge-182/lubos-kolouch/python/ch-1.py new file mode 100644 index 0000000000..373f34c2c8 --- /dev/null +++ b/challenge-182/lubos-kolouch/python/ch-1.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + + +def max_index(lst): + return lst.index(max(lst)) + + +print(max_index([5, 2, 9, 1, 7, 6])) # Output: 2 +print(max_index([4, 2, 3, 1, 5, 0])) # Output: 4 |
