7th May 2025, 10:04 PM
Paul Ilolo
Paul Ilolo - avatar
3 Answers
+ 3
Paul Ilolo Your code it fine but the Sololearn python compilers Doesn't support GUI based libraries that's why your code is not working and showing errors
8th May 2025, 6:50 AM
Alhaaz
Alhaaz - avatar
+ 2
There is no error in the code itself, the code works fine. The error getting raised here is because you can't import Tkinter in Sololearn as you need to install the library(not possible in Sololearn). I tried it in a Python IDE and it worked.
8th May 2025, 3:01 AM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar
0
Thanks I used the help of chatgpt to do it
8th May 2025, 7:03 PM
Paul Ilolo
Paul Ilolo - avatar