Google Colaboratory supports Python version 2.7 and 3.6
I see an example how to use Swift in Colab a while ago.
Today, I happened to run
!jup
Open this link in your browser to create a new notebook with R Kernel
https://colab.research.google.com/notebook#create=true&language=r