ka = []
a = 0
while True:
try:
ka.append(input())
except:
break
else:
ka.append(input())
def first(a):
ka[a].replace("レ", " ")
ka[a], ka[a+1] = ka[a+1], ka[a]
return
if any("レ" in x for x in ka):
a = next((x for x, y in enumerate(ka) if "レ" in y), None)
print(a)
if "二" or "レ" in ka[a+1]:
pass
else:
first(a)
for a in range(len(ka)):
print(ka[a][1:])
To embed this project on your website, copy the following code and paste it into your website's HTML: