By : @zaky
Import it Within Read The Code From Github Raw :
import requests
exec(requests.get('https://raw.githubusercontent.com/Zaky202/PySwitch/main/PySwitch.py').text)
Download PySwitch.py in Current Path of Your Script And Import it :
from PySwitch import *
data='instagram'
switch(data,{
case('twitter'):lambda:print('This is Twitter'),
case('whatsapp'):lambda:print('This is Whatsapp'),
case('instagram'):lambda:print('This is Instagram'),
default():lambda:print('Somthing Else')
})
def Func () :
print('This is Twitter')
case('twitter') : Func