Python 3.10 match-case (switch)
Intro Python 3.10 offers many new cool things (check out official website). One of my favourites is match-case, equivalent to our familiar switch-case. If-else needs variable to be used in the condition repeatedly, makes code longer than necessary. Furthermore, you should NOT use if-else with…