Generation

code to explanationMon, 03 Apr 2023

def change(my_phrase): my_phrase=my_phrase+"!" return my_phrase phrase = "Hello" print(phrase) C=change(phrase) print(phrase) print(C)

--- The function changes the phrase by adding a discord to the phrase and return the new phrase. Then we print the phrase and the new phrase.

Questions about programming?Chat with your personal AI assistant