x=7if x<0 or x>=20: print(0)elif 0<x<5: print(x)elif 5<x<10: print(3*x-5)elif 10<x<20: print(0.5*x-2)
Standard input is empty
16
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!