How to use the API to get the top 20 streams

Sorry about my repeated dumb questions but neither code makes a difference. I am running the Python on an IDE but I don’t get an output.