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

Shadowing A Global

mediumFunctions

📄 Code

Read carefully — what does this print?
1count: int = 10
2 
3def bump() -> int:
4 count: int = 1
5 count = count + 1
6 return count
7 
8print(bump())
9print(count)

🎯 Your Answer