So, lesson learned, hopefully: Messing with Python has consequences.
Now, although it may be possible to correct what you did wrong, it’s impossible to help you with that with only the info you provided.
It takes much less time and effort to simply reinstall Ubuntu. When doing that also consider a newer LTS - 24.04 - or the current 25.10, both can be easily release upgraded to the next LTS 26.04 due to be released in April.
Thanks for the reply. Well I just did what Claude told me to do. So another lesson learned: don’t use Claude to guide you. What is the best chatbot for this kind of stuff? Or is it better to avoid them altogether?