Learning Python and a little bit stuck.
I'm trying to set a variable to equal int(stringToInt) or if the string is empty set to None.
I tried to do variable = int(stringToInt) or None but if the string is empty it will error instead of just setting it to None.
Do you know any way around this?
 
     
     
     
     
     
    