Skip to content

Commit 0623580

Browse files
authored
functions.py
These are the functions that you'll use with your future projects if you use this library.
1 parent 7f179e8 commit 0623580

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

functions.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Library autor: Nicolás Santísima Trinidad Santín
2+
# Created: 16/06/2024
3+
# Python 3
4+
# Using: Visual Studio Code by Microsoft
5+
# All rights reserved
6+
class array:
7+
identification = 0
8+
true_false = False
9+
actualArray = None
10+
def __getInfoLocalArray__(Array):
11+
return len(Array)
12+
def delete(number, Array):
13+
del Array[number]
14+
def show(Array):
15+
for i in range(0,len(Array)):
16+
print(Array[i])
17+
def search(Array,searching):
18+
for i in range(0,len(Array)):
19+
if (Array[i] == searching):
20+
array.true_false = True
21+
break
22+
else:
23+
array.true_false = False
24+
return array.true_false
25+
def getIdentification(Array, Object):
26+
for i in range(0,len(Array)):
27+
if (Array[i] == Object):
28+
array.true_false = True
29+
array.identification = i
30+
break
31+
else:
32+
array.true_false = False
33+
if (array.true_false == True):
34+
return array.identification
35+
else:
36+
return None

0 commit comments

Comments
 (0)