CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #20

Return Versus Print

easyFunctions

📄 Code

Read carefully — what does this print?
1def shout(word: str) -> None:
2 print(word + '!')
3 
4def quiet(word: str) -> str:
5 return word + '.'
6 
7shout('hi')
8print(quiet('hi'))
9result = shout('bye')
10print(result)

🎯 Your Answer