- After Executing The Following Statements Scores Dict Mark 150 Anika 250 Scores List 150 250 Scores Dict 1 (55.24 KiB) Viewed 13 times
After executing the following statements: scores_dict = {"mark": 150, "anika": 250) scores_list = [150, 250] scores_dict
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
After executing the following statements: scores_dict = {"mark": 150, "anika": 250) scores_list = [150, 250] scores_dict
After executing the following statements: scores_dict = {"mark": 150, "anika": 250) scores_list = [150, 250] scores_dict["dacheng"] scores list.append(200) = 200 Expression scores_dict["dacheng"]==scores_list[2] evaluates to True The value of scores_dict["mark"] is 150 Expression scores_dict[0] returns an integer The value of scores_list[1] is 200 String '150' is a key in dictionary scores_dict