A.def func():yield xB.function*func(){yield x;}C.generator func(){yield x;}D.func =generator(x for x in range(10))
A.x if condition else yB.condition ?x :yC.if condition:x else:yD.condition then x else y
A.os.path.exists(path)B.file.exists(path)C.path.exists(file)D.os.exists(file)