Python is a fun language to learn. R is as usefulI. First is important to learn a Language. Then once you have determined if coding is for you and only then you can worry about purity of the language and the Computer Science theories about proper coding. You can’t learn to code if the code crashes without you knowing if the code is at fault, the installation, improper version of compiler/interpreter or else.
For Windows OS McIntosh and Ubuntu Spyder a for Python and RStudio for R are good IDE’s with integrated interpreters.
This is a good Start.