@Complicated welcome to the KNIME forum. Here you can see how to get information into a Python node and back to KNIME. Data as well as Flow Variables.
The Python Script Space on the KNIME Hub has some basci examples:
Also I would recommend to read the:
https://docs.knime.com/latest/python_installation_guide/#_introduction
3 Likes