mirror of
https://github.com/bvanroll/college-python-image.git
synced 2025-09-01 21:42:43 +00:00
first commit
This commit is contained in:
17
projecten1/logic.py
Normal file
17
projecten1/logic.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import classes
|
||||
import sys
|
||||
import os
|
||||
|
||||
|
||||
def GetLowestVal(l):
|
||||
for x, val in enumerate(l):
|
||||
if val > 0:
|
||||
return x
|
||||
|
||||
def GetHighestVal(l):
|
||||
returnVal = 0
|
||||
for x, val in enumerate(l):
|
||||
if val > 0:
|
||||
returnVal = x
|
||||
return returnVal
|
||||
|
Reference in New Issue
Block a user