Last Updated on July 31, 2021 by Admin 1
Refer to the exhibit.
1. import json
2.
3. with open(“json_ios_xe_interfaces.json”, “r”) as json_file:
4. json_file_content = json_file.read()
5. decoded_json = json.loads(json_file_content)
6.
7. print(decoded_json)
8. print()
9. print(type(decoded_json))
Which line of code opens file for read-only access?
- Line # 1
- Line # 2
- Line # 3
- Line # 4