Old #Python: if cmd == "add": ... elif cmd == "remove": ... New Python: match cmd: case "add": ... case "remove": ... match/case (3.10): matches the shape of data, not just values. More in my "python --update" course, July 21: buff.ly/lUnsY6i
4 likes 0 replies
?