Ответ:
string=input()
count=string.count("!")
string=string.replace("!","")
print(string, count)
string=string.replace("а","абвгд")
print(string)
string=string+string[::-1]
string=[string[i] for i in range(len(string)) if i%2==0]
print("".join(string))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
string=input()
count=string.count("!")
string=string.replace("!","")
print(string, count)
string=string.replace("а","абвгд")
print(string)
string=string+string[::-1]
print(string)
string=[string[i] for i in range(len(string)) if i%2==0]
print("".join(string))