Hello everyone : I have only one folder under my current directory and I want to go to it by running "cd $(ls)". So I write this code
import os
os.system("cd $(ls)")
But this did not work for me . Anyone can help to write python syntax to go under the only available folder. PS : the name of the folder is changeable that's why I want to use "cd $(ls)"