If you are learning python from scratch, it would take 8-10 weeks to become a python developer. You may take six to eight weeks to learn basic and elementary Python concepts such as variables, data types, conditional statements, functions, classes, and exception handling. It takes one week to learn the basics of web development technologies. One week to learn web scraping and python libraries like NumPy, pandas, matplotlib for data handling and analysis.
I would recommend this python online course by Intellipaat that has a well-structured curriculum and self-pace learning.
You can watch this video to know how to plan to master skills to become a python developer: