Change 200 to 404. What will the program print?
status = 200
print(status == 200) Line notes
- Store a service response code.
- Compare the code with 200 and print the result.
Question 3 of 5
The helper reads an operating instruction. The remote service has not answered within the time the application can wait.
You ask a service to generate a report and set the app to wait five seconds. If no reply arrives in time, the app can display “No result yet.” The report might still be running. The time the screen has spent waiting and the state of the report on the server are two separate observations.
WHERE TO START
Someone can wait five seconds. What will they see if the response takes seven?
Change 200 to 404. What will the program print?
status = 200
print(status == 200)