3
answers
0
watching
399
views
4 Feb 2018

Question 3. [5 MARKS] def return_mix(num, word): "(int, str) -> object Precondition: word contains at least 3 characters. if word [2] == 'r': return 2 * num elif num > 10: return (word + word) elif word[1:3] == "ab": return (2 == 3) Write the return value and type for each of the following function calls: Return value Return Type Function Call return_mix(5, "Canada") return_mix(12, "Toronto") return_mix(16, "Canada") return_mix(-2, "cabinet") return_mix(11, return_mix(11, "Can"))

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Elin Hessel
Elin HesselLv2
7 Feb 2018
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in