subject

Consider the following code segment: try : inputFile = open("lyrics. txt", "r") line = inputFile. readline() print(line) print("Error") What should be placed in the blank so that the program will print Error instead of crashing if an exception occurs while opening or reading from the file?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:40
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
You know the right answer?
Consider the following code segment: try : inputFile = open("lyrics. txt", "r") line = inputFile. re...
Questions
question
Mathematics, 01.12.2020 22:50
question
History, 01.12.2020 22:50
question
Chemistry, 01.12.2020 22:50
question
English, 01.12.2020 22:50
question
Computers and Technology, 01.12.2020 22:50
question
English, 01.12.2020 22:50
question
Mathematics, 01.12.2020 22:50