# # Author: James Tam # Version: October 13, 2014 # # Learning concepts: to show that a string is composite and # either the whole string can be passed as a parameter or # a sub-string can also be passed # fun: fun1 # fun1(String) # return(nothing) def fun1(str1): print("Inside fun1 %s" %(str1)) # fun: fun2 # fun2(String) # return(nothing) def fun2(str2): print("Inside fun2 %s" %(str2)) def start(): str1 = "abc" print("Inside start %s" %(str1)) fun1(str1) fun2(str1[1]) start()