My issue
def greet(name):
return f"Hello,{name}!"
def capitalize(text):
return text.upper()
def greet_and_capitalize(name):
# Update the code below this line
return capitalize(greet(name))
Call the functions
name = “Alice”
final_result = greet_and_capitalize(name)
Display the results
print(“Greeting:”,greet(name))
print(“Capitalized Greeting:”,capitalize(greet(name)))
print(“Final Result:”,final_result)
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
return capitalize(greet(name))
# Call the functions
name = "Alice"
final_result = greet_and_capitalize(name)
# Display the results
print("Greeting:",greet(name))
print("Capitalized Greeting:",capitalize(greet(name)))
print("Final Result:",final_result)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone