Dictionary, Lists, and InfoDB
print("What is my name?")
name = "Ederick Wong"
print("name", name, type(name))
print()
print("What is my age?")
age = 14
print("age", age, type(age))
print()
print("What percentage of my grade are for tests?")
score = 75.0
print("score", score, type(score))
print()
print("Give me some info on X")
person = {
"Ederick" : name,
"14" : 14,
"90.0" : 90.0
}
print("What is my name?")
print("What is my age?")
langs = ["Python", "JavaScript", "Java"]
print("langs", langs, type(langs), "length", len(langs))
print("- langs[0]", langs[0], type(langs[0]))
print()
print("Basic Info on Me")
print("Try to see any changes")
person = {
"name": name,
"age": age,
"score": score,
"langs": langs
}
print("person", person, type(person), "length", len(person))
print('- person["name"]', person["name"], type(person["name"]))
numbers = [1, 2, 3, 4]
for x in (numbers):
print(numbers)
dictionary = ["Ederick", "DNHS", "14"]
print(dictionary)
InfoDB = []
InfoDB.append({
"Name" : "Ederick Wong",
"Age" : "14",
"Percentage on Tests" : "75.0",
})