What is the scope of leftCharacter?

def rhyme(word):
leftCharacter = word[0]
if leftCharacter != 'd':
return 'd' + word[1:]
else:
return 'f' + word[1:]

def poem():
print("Enter Q to quit.")
userWord = input("Enter a word: ")
while userWord != 'Q' and userWord != 'q':
rhymeWord = rhyme(userWord)
print(rhymeWord)
userWord = input("Enter a word: ")

# the main part of your program that calls the function
poem()


the entire program

rhyme

poem

the main part of your program that calls the function

Respuesta :

x3ch0s

Answer:

Rhymeword

Explanation:

edge 2020

Answer:

The scope of leftCharacter is rhyme. I hope this helps you out. Have a wonderful and safe day. <3<3<3

Explanation: