Объяснение:
s = input()
s = s[:2] + s[3:] + s[2]
s1 = ''
for i in s:
s1 += i
if i == ' ':
s1 += '*'
s = s1
print(s)
Объяснение:
s = input()
s = s[:2] + s[3:] + s[2]
s1 = ''
for i in s:
s1 += i
if i == ' ':
s1 += '*'
s = s1
print(s)