Ответ:
решение номер 1:
n = input()
newn = ''
s = 'школа'
for x in range(len(n)):
if n[x] in s:
pass
else:
newn = newn + n[x]
print(newn)
решение номер 2:
a = n.replace('ш', '')
a = a.replace('к', '')
a = a.replace('о', '')
a = a.replace('л', '')
a = a.replace('а', '')
print(a)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
решение номер 1:
n = input()
newn = ''
s = 'школа'
for x in range(len(n)):
if n[x] in s:
pass
else:
newn = newn + n[x]
print(newn)
решение номер 2:
n = input()
a = n.replace('ш', '')
a = a.replace('к', '')
a = a.replace('о', '')
a = a.replace('л', '')
a = a.replace('а', '')
print(a)