python-snippets/pseudodb/default/data.py

29 lines
880 B
Python
Raw Normal View History

2024-07-18 23:24:32 +00:00
from array import array as ar
2024-07-17 21:30:12 +00:00
names = {
"male": ["Greg", "John", "Edward", "Francis", "Charles", "Luke", "Thomas"],
"female": ["Doreen", "Janice", "Sue", "Mary", "Lisa", "Janine", "Doris"]
}
cars = {
"chevy": ["Blazer", "Tahoe", "Caprice", "Suburban", "Silverado"],
"ford": ["Mustang", "Bronco", "Focus", "Taurus", "Escape"],
"chrysler": ["Sebring", "Crossfire", "Pacifica", "Voyager"]
}
languages = {
"compiled": ["C++", "C#", "C", "Assembler", "Rust", "Go"],
"interpreted": ["Ruby", "Rexx", "Perl"],
"bytecode": ["Java", "Python", "VisualBasic"]
2024-07-18 23:24:32 +00:00
}
fruits = ["apple", "banana", "cherry", "orange", "strawberry", "pear"]
disparates = ["string!", 2020, 3.14, {"thing": "and such"}]
years = (2010, 2011, 2012, 2013, 2014, 2015)
floats = ar('f', [3.14, 0.5, 9.99, 1.5])
message = "This is just a plain old string!"