New course! Every coder should learn Generative AI!
Try a free lesson+ 5
If you are running it in SoloLearn playground, it can't work. Your program runs on a remote server and only text output to console is returned for display once it has completed.