PYTHON : DECISION MAKING

  • if can be anything/eg [something is greater than something or smaller than something]
  • we need- if it did not hold the value we need error!!
  • 12/-     if not option. interface:
  • Massage for error-   13/-    parser.error("[-]Please specify an interface, use --help for more info.)
  • 14/-      elif not option.new_mac:
  • Massage for error-   15/-   parser.error("[-]Please specify an new mac, use --help for more info.)
16/-    return option /cuz we have both interface and new mac so we have to return
DOWNLOAD/VIEW

WHEN WE NOT PUT MAC SO WE SEE ERROR

IF WE NOT USE INTERFACE(eth0) WE SEE ERROR
IF WE PUT BOTH

Post a Comment

If you have any doubts, please let me know

Previous Post Next Post