C2W2Lab01 Exercise 3

Hello!
I need help with Exercise 3 (Course 2, Week 2, Lab 01), I graded my work and I have problem with
“Paginated with Next Featured Playlists”
The exercise compiles, but I don’t have an output to compare with.
Can you help me, with output to compare with?
Note: It is important to have a test to validate the response, when you have a significant number of lines code. Thank you very much for your help!
Luis.

Hello @lumillao
The output to this cell must be some lines like the following:
image
The offset variable increases in each line.

Hello! @Amir_Zare

Thank you for your help. My problem is a while loop, but it has no termination condition.
In the blueprint code is missing a variable or termination condition. The offset does not increase at each iteration.

Luis.

@lumillao,Hello in ex1 get_featured_playlists you need to: Perform a GET request using the request_url and headers.
Could you check you used url instead, that might be the reason your offset not updating? thanks

1 Like

Hello! @Georgios. I applied request_url in exercise 1, but now I only one correct answer. I think are problems with the automated check. Do you know who can help me because I want to know where I made a mistake and how I can correct it.Thank you very much.

Luis.

Hello @lumillao
The grader is working fine. If your code gets stuck in an infinite loop in the following cell after exercise 3, as @Georgios mentioned, the problem is with the get_featured_playlists method, which you completed in exercise 1. Other students have had this problem as well.
image
Please, double check your answer to exercise 1.

Hello! Amir_Zare. I apologize, maybe I didn’t explain myself very well. I reviewed exercise 1, and corrected it as indicated by Georgio. This solution worked in my local environment, but when I apply in the evaluation, the system corrected only one answer. I attached the screenshot.

@Amir_Zare, I tried it one more time and this time I got full points. But I couldn’t figure out what the problem was. I would like to be able to help and for this reason I suggest clearly identify the functions and methods, the input and return parameters, describe what the functions does and have tests that allow us to validate the correct operation. This is of great help for young people or for engineers who are just starting out. Thank you very much for your help.

Luis Millao | Senior Software Engineer | Cybersecurity Analyst

Hello! @Georgios. Thank you very much, your suggestion helped me fix my mistake in the code.

1 Like