python switch statement doesn't work
I have found a function which implement a switch statement -->

    File = open('/file.txt','r')
        
        String = File.readline()
        String = str(String)
        print String 

        for case in switch(String):
            if case("Head"):
                print "test successed"
                break
            if case("Small"):
                print String
                break
            if case("Big"):
                print String
                break  
            if case():
                print String 
                break 


the String value when I print it is Head, but the switch statement always goes to the last case.. the function works fine apparently because when I changed the String with v = "Head" it worked!!! 

any idea what went wrong ? 
python switch statement doesn't work
===

I have found a function which implement a switch statement -->

    File = open('/file.txt','r')
        
        String = File.readline()
        String = str(String)
        print String 

        for case in switch(String):
            if case("Head"):
                print "test successed"
                break
            if case("Small"):
                print String
                break
            if case("Big"):
                print String
                break  
            if case():
                print String 
                break 


the String value when I print it is Head, but the switch statement always goes to the last case.. the function works fine apparently because when I changed the String with v = "Head" it worked!!! 

any idea what went wrong ? 