I am using google colab which combine the shell script and python script such as
For example
a = "test"
print(a)
!cd /content/drive/MyDrive/test
First and second line is python and third line is shell.
Now I want to use pytho variable in shell such as
a = "test"
print(a)
!cd /content/drive/MyDrive/{a}
Is it possible?
cdin a subprocess is completely pointless.