feat: added examples_tutorials
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Python data types
|
||||
list = [value1, value2, value3,...valueN]
|
||||
set = {value1, value2, value3,...valueN}
|
||||
dict = { key1:value1, key2:value2,...keyN:valueN }
|
||||
"""
|
||||
|
||||
list_of_dict = [{'name': '203.60.15.113/32', 'data': ''}, {'name': '222.186.30.174/32', 'data': ''},{'name': '120.136.32.106/32', 'data': ''}]
|
||||
new_record = {'name': '1.2.3.4/32', 'data': ''}
|
||||
|
||||
list_of_dict.append(new_record)
|
||||
print(list_of_dict)
|
||||
Reference in New Issue
Block a user