My issue
Greeting Hello, Alice!
Capitalized Greeting: HELLO, ALICE!
Final Result: HELLO, ALICE!
whats wrong with this output
My code
def greet(name):
return f"Hello, {name}!"
def capitalize(text):
return text.upper()
def greet_and_capitalize(name):
# Update the code below this line
x=greet(name)
y=capitalize(x)
return y
# Call the functions
name = "Alice"
final_result = greet_and_capitalize(name)
x=greet(name)
y=capitalize(x)
# Display the results
print("Greeting",x)
print("Capitalized Greeting:",y)
print("Final Result:", final_result)
Learning course: Python with Data structures
Problem Link: CodeChef: Practical coding for everyone