PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'''
Missing Array Numbers
Question on the forum was how to output the missing numbers from an array.
https://lordhill.itch.io
'''
theList=[13,18,16,7]
def myFunc(x):
low=min(x)
hi=max(x)
myList=[i for i in range(low,hi) if i not in x]
return myList
print(myFunc(theList))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run