I'm not a big fan of deeply nested blocks. It's just like you mentioned. I would use if elif else in python as replacement of switch.
ifplants==1:print("Tulip")elifplants==2:print("Rose bush")elifplants==3:print("Pineapple")elifplants==4:print("Banana")else:print("enter a valid option")
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not a big fan of deeply nested blocks. It's just like you mentioned. I would use if elif else in python as replacement of switch.