Hey everyone I always programmed in C before but am now trying out python. When i wanted a switch function I road something like:
Switch(example){
Case 1:{
//All code and function
}
Case 2:{
//All code and function
}
}
Now i have tried and search switch statements for python but didn't show me the answer. They only gave examples of switches that can return an int, string etc. But not a whole piece of code. Is there an easy solution or could i just use and elif tower?