backup = input("would you like to back up your home directory? ") if backup == 'yes': import os os.chdir(os.path.expanduser("/")) os.mkdir("backup")