subject

The function below tries to create a list of integers by reading them from a file. the file is expected to have a single integer per line and the code works correctly in that case. if any of the lines don't contain just an integer, than this code fails. fix this code so that it ignores any lines that don't contain integers instead of raising an exception. do this with try/except blocks. your code should still return the list of integers from the lines that contain integers.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
You know the right answer?
The function below tries to create a list of integers by reading them from a file. the file is expec...
Questions
question
Biology, 08.06.2021 23:30
question
Mathematics, 08.06.2021 23:30
question
Mathematics, 08.06.2021 23:30
Questions on the website: 13722359