I am using nested if in my python code, my example code is :
message = event_data["event"]
    if message.get("subtype") is None :
       if "friday" in message.get('text'):
          callfridayfunction()
       if "saturday" in message.get('text'):
          callsaturdayfunction()
       if "monday" in message.get('text'):
          callmondayfunction()
How can I write this as a switch case or using dictionary ? Please help
 
    