6th day of python challenges 88-94
This commit is contained in:
8
challenges88-95/challenge-094.py
Normal file
8
challenges88-95/challenge-094.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import array as arr
|
||||
|
||||
view_array = arr.array('i', [11, 22, 33, 44, 55])
|
||||
print(view_array)
|
||||
ask = int(input('Enter number to see index : '))
|
||||
while ask not in view_array:
|
||||
ask = int(input('Enter number to see index : '))
|
||||
print(view_array.index(ask))
|
||||
Reference in New Issue
Block a user