python data structures code example
Example 1: data structures and algorithms in python
great course, highly recommended !
"https://www.udemy.com/course/algorithms-and-data-structures-in-python/"
Example 2: Python dictionary append
d1 = {
"1" : 1,
"2" : 2,
"3" : 3
}
d1["4"] = 4
print(d1)
Example 3: python data structures
string = 'Hi my name is Dr.Hippo'
integer = 12345
fl = 123.456
li = [1,2,3,,'string',None]
t = True
f = False
n = None
dictionary = {'key':'value'}
Example 4: python data structures
list = [same as array with different features]
array = [23, 'arrayItem', True, ['Hi', 34, False] ]
dictionary = {'key' : 'value'}
object = class testObj:
tuple = ( "a", "b", "c", "d" );