Python is commonly used in astronomy but sometimes it is not clear where to start. Below are some good resources that are available to get started on using python and even analysing data. Some of these are focused for undergraduates with little python knowledge, but there is also more advanced discussions. If you have any suggestions, please let me know and I would be very happy to add them!
Introduction to scientific computing for astronomers: https://www.ocf.berkeley.edu/~ipasha/python/textbook.pdf, corresponding lecture notes: https://www.ocf.berkeley.edu/~ipasha/python/Lecture_slides.html and a more detailed website with interactive tutorials etc: https://prappleizer.github.io/index.html or https://github.com/profjsb/python-bootcamp/
Full set of recorded lectures for a class at UC Berkeley related to Physics High Performance and Scientific Computing: https://www.youtube.com/playlist?list=PLF4gvjw0nvoZjtqbQC8_GSrNQDLYTURZp
Collection of notebooks on computational (astro)physics, used to introduce finite-volume methods for solving the Euler equations. These notebooks introduce numerical methods for derivatives, intergration, rooting finding, and ODEs, focusing on the parts that we will need to solve the equations of hydrodynamics: https://zingale.github.io/comp_astro_tutorial/intro.html
Introduction to astronomy research for students/researchers and enthusiasts: https://github.com/howardisaacson/Intro-to-Astro-2021. Course videos: https://www.youtube.com/channel/UC_ZmUfnIK2hGheKuikVySWQ
Some homework assignments which do the basics of reading in files and working with some astro data: https://github.com/karenlmasters/ASTR204JupyterAssignments
Quick overview to python: https://github.com/csalyk/python_tutorial/blob/master/python_tutorial.ipynb
Some basics for playing with large datasets such as the Sloan Digital Sky Survey: https://github.com/brittlundgren/SDSS-EPO
Software development program where they present fundamental software engineering skills and best practices for building sustainable open-source packages for astronomy applications: https://github.com/semaphoreP/codeastro
A beginner's guide to working with astro data: https://arxiv.org/abs/1905.13189
Intro course to python notebooks: https://github.com/jakevdp/2014_fall_ASTR599/tree/master/notebooks
How to use git and Github: https://christinahedges.github.io/astronomy_workflow/
Understanding Git: https://www.sbf5.com/~cduan/technical/git/
Fitting a model to data:https://arxiv.org/abs/1008.4686
Python bootcamp: https://www.youtube.com/playlist?list=PLbJEQKXFZR1uATg2dyyKUDFnqtTzkUdZv
https://www.coursera.org/learn/data-driven-astronomy#syllabus