Yep, Python is such an integral part of Linux that we’ve already got both installed!
You know, an IDE can seem like a necessity, but check out the old-school text editors Vim and Emacs. An IDE is full of helpful-seeming buttons etc., but IMO the actual text-editing aspects of most IDEs is rather weak, and they make you rely on the mouse. Vim and Emacs, on the other hand, appear very minimalistic at first, but are designed so you can do EVERYTHING without your hands leaving the keyboard. This is a much faster way to edit. A minimal version of Vim called vi is actually already installed, it’s the standard CLI editor on Linux systems, but Vim has more features. If you decide to try one, start by following the built-in tutorial. For Vim, trigger it by typing vimtutor at the shell prompt. Emacs offers the tut at the start screen.
For IDEs, I like Geany. It’s a nice, lightweight little IDE, and handles a number of languages (including Python) very well.
All of these are 100% free (as in freedom), unlike Pycharm or Sublime Text, and you can find them in the Ubuntu repos, just a sudo apt install away.