For this Question: Given a String which contains Operators and Numbers.
Operators can be: ['+', '- ', '*', '/']
Numbers: Positive integers.
The task is to evaluate the given expression based on the <b>BODMAS</b> rule. 

<b>Note</b>: If the String starts or ends with any of the operators then that String would be considered invalid.Input contains a single line containing the string S.

Constraints:
1 <= numbers <= 9Return the result computed if the string is valid otherwise, it should return "String Invalid"Sample Input:
2 + 5 + 5 - 6 / 3 * 4

Sample Output:
4

Sample Input:
+ 2 + 6 + 3

Sample Output:
String Invalid, I have written this Solution Code: string=input()
try:
    if string[0] in ["+","-","/","*"]:
        print("String Invalid")
    else:
        print(int(eval(string)))
except:
    print("String Invalid"), In this Programming Language: Python, Now tell me if this Code is compilable or not?