What is the variable name/key? value? type? primitive or collection, why?
name John Doe <class 'str'>
What is the variable name/key? value? type? primitive or collection, why?
age 18 <class 'int'>
What is the variable name/key? value? type? primitive or collection, why?
score 90.0 <class 'float'>
What is variable name/key? value? type? primitive or collection?
What is different about the list output?
langs ['Python', 'JavaScript', 'Java'] <class 'list'> length 3
- langs[0] Python <class 'str'>
What is the variable name/key? value? type? primitive or collection, why?
What is different about the dictionary output?
person {'name': 'John Doe', 'age': 18, 'score': 90.0, 'langs': ['Python', 'JavaScript', 'Java']} <class 'dict'> length 4
- person["name"] John Doe <class 'str'>
What is the variable name/key? value? type? primitive or collection, why?
name Dillon Lee <class 'str'>
What is the variable name/key? value? type? primitive or collection, why?
age 16 <class 'int'>
What is the variable name/key? value? type? primitive or collection, why?
score 90.0 <class 'float'>
What is variable name/key? value? type? primitive or collection?
What is different about the list output?
langs ['Python', 'JavaScript', 'Java'] <class 'list'> length 3
- langs[0] Python <class 'str'>
What is the variable name/key? value? type? primitive or collection, why?
What is different about the dictionary output?
person {'name': 'Dillon Lee', 'age': 16, 'score': 90.0, 'langs': ['Python', 'JavaScript', 'Java']} <class 'dict'> length 4
- person["name"] Dillon Lee <class 'str'>