Food and Entertaining How long does it take to teach yourself Python? How long does it take to teach yourself Python? In general, it takes around two to six months to learn the fundamentals of Python. But you can learn enough to write your first short program in a matter of minutes. Developing mastery of Python's vast array of libraries can take months or years.