Created by cahier-algo-2de-indice2019
Created on December 03, 2018
95 Bytes
def f(x): if x<=0: y=-x+1 else: y=x+1 return(y)