Solved

In Python, Which Expression Checks Whether the Script Returns a Success

Question 30

Multiple Choice

In Python, which expression checks whether the script returns a success status code when the Requests library is used?


A) response.status_code == requests.codes.ok
B) response.code == requests.codes.ok
C) response.status_code == requests.ok
D) response.status_code != requests.codes.ok

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions