Take a computer scientist with some skills of imperative, functional, and declarative programming languages excluding Python and knowing almost nothing about machine learning (e.g., he/she did 0 to 1 exercises on neural nets in his/her graduate studies decades ago). The exact portfolio of the programming languages that the individual knows probably doesn't matter, and for the sake of a concrete example, let's assume C, C++, C#, Spec#, Java, Assembler, Fortran, Pascal, Basic, JavaScript, VBScript, shell scripts, Maple, ML, LISP, F#, spreadsheet calculation, Boogie, Prolog, LaTeX, HTML, JSON, some basic CSS, some basic SQL.
How long would he/she need to learn Python including the necessary libraries? He/she would learn himself/herself using publicly available online tutorials. We'd like to have a concrete estimation, say, in person-days assuming a standard working of, say, 8 full working hours.
The goal would be to prepare for a course on the foundations of machine learning. The exact contents of the course probably doesn't matter, and for the sake of an example, let's assume supervised learning, unsupervised learning, evaluation and improvement, introduction to deep learning, basics in neural networks, convolutional neural network (CNN), transfer learning, regional CNN, methods of creative image generation, recurrent neural networks, word processing using neural networks, language models, deep reinforcement learning, Bayesian neural networks, project work); this course does require Python (and no other programming language). Though there's a preparatory course in Python taking 4 weeks, this preparatory course (1) is directed to more general public (programming beginners, computer scientists, IT specialists, people with experience in engineering or data analysis and specialists with relevant professional experience) and (2) prepares for a bunch of other topics as well (Scrum, requirements engineering, data engineering, cloud computing, Linux admin & engineering, backend development, Design thinking, software testing, Azure, data analytics, spatial analysis, frontend development, cloud administration, CCNA, statistics, big data, data manager, …); so the only conclusion we can make is an upper bound of 4 weeks = 20 person-days.