Yes, you can run python code from swift using PythonKit.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile