Git is a tool a version control software, whereas Python is a programming language, there shouldn’t be a comparison in the first place. If you want to learn a programming language, then do so by investing in a python course and if you want to learn Git and GitHub then check out the git training from Intellipaat which is a 16 hrs course that also includes 7 guided projects to gain sufficient hands-on experience.
Do check out our YouTube video on What is Git and how to use it from our expert team.