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

A Function Calling Another

easyFunctions

📄 Code

Read carefully — what does this print?
1def double(n: int) -> int:
2 return n * 2
3 
4def double_twice(n: int) -> int:
5 return double(double(n))
6 
7print(double(3))
8print(double_twice(3))
9print(double(double_twice(1)))

🎯 Your Answer