Исправьте ошибку в python


s = '4' * 123

while '4444' or '1111' in s:

if "4444" in s:

s = s.replace('4444', '77', 1)

else:

s = s.replace('1111', '22', 1)

print(s)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.