File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments