What does the comma in the declaration below mean? Does it define two variables at once?
resp, content = client.request(request_token_url, "GET")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It creates a tuple. In this case, the tuple is of two variables, which get assigned the result from
request().request()returns a tuple, which is then automatically unpacked into the left-hand tuple during assignment.If you had just
that would assign the tuple directly to result. Then you would be able to access the response at
result[0], the first value in the tuple, and the content would be inresult[1].