object_oriented:
def story(山, 庙, 老和尚, 小和尚):
story_item = [山, 庙, 老和尚, 小和尚]
for i in story_item:
print( i )
while True:
story( )
procedure_oriented:
a = 山
b = 庙
c = 老和尚
d = 小和尚
while True:
print(f’从前有座{a}’)
print(f’{a}里有座{b}’)
print(f’{b}里有个{c}’)
print(f’{c}正在给{d}讲故事,故事是’)