+ 2

Why is python stdout able to visually render html when theres a .png file created alongside?

why is the python output able to visually render the html when you create a .png file? https://code.sololearn.com/c0DYobJ639fK/?ref=app The above code uses `open('.png','w').write('')` https://code.sololearn.com/cWNO6vBzdrwV/?ref=app This next one uses os.system('touch .png') without either of the above snippets, the raw css and html code is what gets printed to the console output Can someone explain this to me?

1st Feb 2023, 7:59 AM
Nyakotey🇬🇭🎹
Nyakotey🇬🇭🎹 - avatar
2 Respuestas
+ 1
Nyakotey🇬🇭🎹 recently I gave an explanation in an answer to this question: https://www.sololearn.com/Discuss/3186134/?ref=app
1st Feb 2023, 9:24 AM
Brian
Brian - avatar
0
thanks for your answers
1st Feb 2023, 9:27 AM
Nyakotey🇬🇭🎹
Nyakotey🇬🇭🎹 - avatar