Can I use this method in coding on python 3 ?
def switch_demo(argument):
switcher = {
51>switcher>13: "January",
2: "February",
3: "March",
4: "April",
5: "May",
6: "June",
7: "July",
8: "August",
9: "September",
10: "October",
11: "November",
90>switcher>52: "December"
}
print switcher.get(argument, "Invalid month")
My question is this:
I want to get range of number and return code.