How this code work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
5th Mar 2021, 5:58 PM
Melekte Petros
Melekte Petros - avatar
3 Answers
+ 2
Melu These two lines The first is the library import urllib.request The second is the request to get the image png urllib.request.urlretrieve(url, '{}.png')
5th Mar 2021, 7:23 PM
BroFar
BroFar - avatar
+ 1
I’m not sure why it works, but when those lines request image data from the URLs and then just leave it in the open, the sololearn interpreter displays the contact. I think in python is normal IDE, however, this would not work. The avatar image you used is just creepy. Please change it.
5th Mar 2021, 6:54 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
Melu You can ask this question to BroFar sir in his code through comment it's not necessary to ask this question in Q&A.
5th Mar 2021, 7:14 PM
R💠🇮🇳
R💠🇮🇳 - avatar