# line comment 1 # line comment 2 # line comment 3 def f(): # inner line comment 1 # inner line comment 2 # inner line comment 3 x = 42 # trailing comment 1 # line comment 4 def g(): pass if True: # semi top-level comment 1 # semi top-level comment 2 # semi top-level comment 3 class C: pass