Python Institute PCEP - Certified Entry-Level Python Programmer - PCEP-30-02무료 덤프문제 풀어보기
Assuming that the phonc_dir dictionary contains namemumber pairs, arrange the code boxes to create a valid line of code which retrieves Martin Eden's phone number, and assigns it to the number variable.


정답:

Explanation:

number = phone_dir["Martin Eden"]
This code uses the square brackets notation to access the value associated with the key "Martin Eden" in the phone_dir dictionary. The value is then assigned to the variable number. A dictionary is a data structure that stores key-value pairs, where each key is unique and can be used to retrieve its corresponding value. You can find more information about dictionaries in Python in the following references:
* [Python Dictionaries - W3Schools]
* [Python Dictionary (With Examples) - Programiz]
* [5.5. Dictionaries - How to Think Like a Computer Scientist ...]
Assuming that the following assignment has been successfully executed:
My_list - [1, 1, 2, 3]
Select the expressions which will not raise any exception.
(Select two expressions.)
My_list - [1, 1, 2, 3]
Select the expressions which will not raise any exception.
(Select two expressions.)
정답: B,C
설명: (Fast2test 회원만 볼 수 있음)
What is the expected output of the following code?


정답: D
설명: (Fast2test 회원만 볼 수 있음)
What is the expected result of running the following code?


정답: B
설명: (Fast2test 회원만 볼 수 있음)
What is the expected output of the following code?


정답: B
설명: (Fast2test 회원만 볼 수 있음)