Update: I tried ChatGPT again, asking it to generate python code that simulates an SIR model and plots the outcome with Matplotlib. Today, it delivered correct code (I did change the timescale to get a nicer plot though). But the real came with the next question...