J
joy99
Dear Group,
I have a small question on function.
If I write two functions like the following:
IDLE 2.6.5 element1=5
element2=6
add=element1+element2
print "PRINT THE ADDITION",add
element3=7
element4=22
mult=element3*element4
print "PRINT THE MULTIPLICATION",mult
Can I now write a third function where the above two functions can be
passed as argument or parameter?
Best Regards,
Subhabrata.
NB: As I copied the code from IDLE to MS-Word befor posting here,
codes may have slight indentation errors.
I have a small question on function.
If I write two functions like the following:
IDLE 2.6.5 element1=5
element2=6
add=element1+element2
print "PRINT THE ADDITION",add
element3=7
element4=22
mult=element3*element4
print "PRINT THE MULTIPLICATION",mult
Can I now write a third function where the above two functions can be
passed as argument or parameter?
Best Regards,
Subhabrata.
NB: As I copied the code from IDLE to MS-Word befor posting here,
codes may have slight indentation errors.