Since it’s an intro course and the language is Python you’d probably be fine doing it online. However, if you continue to learn to program and begin learning about some of the more advanced programing topics and concepts it might be helpful take it in person.
My guess is that you’ll cover the basics of programming like variables, dictionaries, loops, and boolean logic. These are pretty simple concepts. In addition, Python is a pretty straight forward language, which doesn’t require much understanding of how programs are executed “under the hood” unlike C or C++. Therefore, online should be pretty simple.
However, if you continue to progress or start using a language like C or C++ it might be helpful to take it in person. For example, topics like object oriented programming, abstract/generic classes, interfaces, polymorphism, and algorithms can be helpful to learn in person. Sometimes learning and applying these things may be difficult to digest and implement and having classmates could be helpful to “get you over the hump,” especially if some of them are employed programmers just trying to get that piece of paper.