python3 methods code example
Example 1: function in python 3
#use the def keyword to declare a function in Python
def function(args,kwargs='attribute'):
#here is the returned value
return 'return value'
Example 2: join python documentation
>>> ''.join(['A', 'B', 'C'])
'ABC'
>>> ''.join({'A': 0, 'B': 0, 'C': 0}) # note that dicts are unordered
'ACB'
>>> '-'.join(['A', 'B', 'C']) # '-' string is the seprator
'A-B-C'