Created
February 16, 2018 01:40
-
-
Save acbart/8c13b0efb6e1b863f9c72e9288e0d5b0 to your computer and use it in GitHub Desktop.
What will be printed?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code without call outside, without call inside | |
def a(): | |
print("a() was called") | |
# Code without call outside, with call inside | |
def b(): | |
print("b() was called") | |
b() | |
# Code with call outside, without call inside | |
def c(): | |
print("c() was called") | |
c() | |
def d(): | |
print("d() was called") | |
d() | |
d() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment