-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.py
36 lines (36 loc) · 1.05 KB
/
functions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Library autor: TecnoSamba21
# Created: 16/06/2024
# Python 3
# Using: Visual Studio Code by Microsoft
# All rights reserved
class array:
identification = 0
true_false = False
actualArray = None
def __getInfoLocalArray__(Array):
return len(Array)
def delete(number, Array):
del Array[number]
def show(Array):
for i in range(0,len(Array)):
print(Array[i])
def search(Array,searching):
for i in range(0,len(Array)):
if (Array[i] == searching):
array.true_false = True
break
else:
array.true_false = False
return array.true_false
def getIdentification(Array, Object):
for i in range(0,len(Array)):
if (Array[i] == Object):
array.true_false = True
array.identification = i
break
else:
array.true_false = False
if (array.true_false == True):
return array.identification
else:
return None