PYTHON: FUNCTIONS

#  HOW YOU CAN DEFINE A FUNCTION BY!!

  • def _any name u want(input this function take)
  • def_change_mac(interface, new mac) : /6

py charm automatically set a block in the same line/7-11-[code to change mac address], this is how python separate the block of codes


#HOW TO READ ERROR!
  • LINE-22
  • OPTIONS IS NOT DEFINED
RETURNING THE VALUE FROM FUNCTIONS

WHAT IS HAPPENING WHEN WE ARE EXECUTING THE PYTHON PROGRAM    

  • 1st it will run get argument function then get argument function will read all the function 
  • then parse them in 11 then it will return the 2 sets of the information /the arguments and the values
  • because we are using the return function
  • it will be captured by options, arguments
  • u know for the change mac

Post a Comment

If you have any doubts, please let me know

Previous Post Next Post