CSC111 Exercises with Global Variables
--D. Thiebaut (talk) 15:57, 24 April 2014 (EDT)
style="width: 50%;"
A = 3
def f1( x ):
print( "f1", x, A )
print( "A = ", A )
f1( 30 )
|
>>>
A = 3
f1 30 3
>>>
|
--D. Thiebaut (talk) 15:57, 24 April 2014 (EDT)
style="width: 50%;"
A = 3
def f1( x ):
print( "f1", x, A )
print( "A = ", A )
f1( 30 )
|
>>>
A = 3
f1 30 3
>>>
|