私はPythonが初めてで、文字列を「abc」から「def」に変更しようとしています。つまり、取得し続けています。"unindented does not match any other indentation level."
したがって、これは私の関数の何が問題なのですか?
def changes(x):
if 'a' in sent:
x=sent.replace('a','d')
if 'b' in x:
y=x.replace('b','e')
if 'c' in y:
z=y.replace('c','f')
print(z)
sent=print(input('Enter a sentence:'))
changes(x)