I have just started learning python and I am trying to use if/else statement in python -c, but I keep getting Invalid Syntax error. The reason I want to call if/else with python -c is because I want to call some python modules with if/else in my bash script. Is it possible and I would like to stick to python -c and not python -m?

Below is what I have tried so far

### Try 1

```none
python -c "if False: print 'not working';else print 'working'"
  File "<string>", line 1
    if False: print 'not working';else print 'working'
                                     ^
SyntaxError: invalid syntax

```

### Try 2

```none
python -c "if False:    print 'not working';else:    print 'working'"
  File "<string>", line 1
    if False:    print 'not working';else:    print 'working'
                                        ^
SyntaxError: invalid syntax

```

### Try3

```none
python -c "if False:;    print 'not working';else:;    print 'working'"
  File "<string>", line 1
    if False:;    print 'not working';else:;    print 'working'
             ^
SyntaxError: invalid syntax

```

Any suggestions on how I can fix this issue?

And what if I want to use if|elif|elif|else kind of statement?

Thanks in advance!