Beispiel #1
0
def deleteTeam(teamN):
    x = tm.delete().where(tm.tName == teamN)
    cnfrm = input(
        'Are you sure you want to delete {} from the list of teams? [Y]: '.
        format(teamN))
    if (cnfrm == 'y') or (cnfrm == 'Y'):
        y = x.execute()
        os.system('cls')
        viewTeam()
        puts(colored.cyan('\n{} team has been deleted!\n'.format(y)))