Difference between revisions of "CSC111 Exercises with Global Variables"

From dftwiki3
Jump to: navigation, search
Line 2: Line 2:
 
----
 
----
 
<br />
 
<br />
{| class="wikitable" style="width: 80%;
+
{| class="wikitable" style="width:100%;"
 
| style="width: 50%;"
 
| style="width: 50%;"
 
<br />
 
<br />

Revision as of 19:03, 24 April 2014

--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
>>>