s='123' if '1' in s and s.isdecimal(): print(2*int(s)) # Résultat : 246