Hello. Nice to meet you. I am Japanese.
I am not very good at English, so I may not be able to explain things well.
Even so, I am studying because I want to learn about Python.
The reason is that I want to use it for writing senryu, which is my hobby.
I asked ChatGPT to create a program for me,
but when I pasted it into Python and ran it, it gave me an error and did not work.
Here is the program.
Please tell me what is wrong and what I should do.
Thank you very much.
I tested your script. It is working just fine. Maybe it is other lines of code that are active on your terminal that are causing the error? Generally, when an exception is generated, it points to the line that is causing the error.
Thank you very much for your support. As you suggested, after commenting out the non-code lines and saving the script with UTF-8 encoding, it worked perfectly.
Certainly! Here’s the English translation of your heartfelt message:
I’m incredibly grateful for your support. Although I asked everyone about this problem, I’m an absolute beginner when it comes to Python. So, I thought I’d try to learn what I wanted to do using AI and asked for your help. However, I felt like I wouldn’t be able to achieve what I intended, and I had given up and stepped away from Python. But after rereading your support, I realized that there are people out there who offer such extensive help, and it made me want to try again. Even though I’m elderly, I believe that if I still have the will to challenge myself, there’s still something I can do, so I’ve decided to give it another shot. It’s thanks to all of you. Thank you very much.