subject

Write a function safeopen() that takes one parameter, filename — a string giving the pathname of the file to be opened for reading. when safeopen() is used to open a file, a reference to the opened file object should be returned if no exception is raised, just like for the open() function. if an exception is raised while trying to open the file, safeopen() should return the value none.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
You know the right answer?
Write a function safeopen() that takes one parameter, filename — a string giving the pathname of the...
Questions
question
English, 29.04.2021 18:00
question
Mathematics, 29.04.2021 18:00
question
Mathematics, 29.04.2021 18:00
Questions on the website: 13722361