def create_or_edit(sheet):
 if (not exists(sheet)):
  create(sheet)
 elif (exists(sheet) and (not exists_in_default_path(sheet))):
  copy(path(sheet), os.path.join(sheets.default_path(), sheet))
  edit(sheet)
 else:
  edit(sheet)

def create_or_edit ( sheet ) : if ( not exists ( sheet ) ) : create ( sheet ) elif ( exists ( sheet ) and ( not exists_in_default_path ( sheet ) ) ) : copy ( path ( sheet ) , os . path . join ( sheets . default_path ( ) , sheet ) ) edit ( sheet ) else : edit ( sheet )
creates or edits a cheatsheet .