Oct-25-2020, 02:24 PM
Hi All,
Please go easy on me, I am new to this and I have never programmed/scripted before.
I am trying to learn python, and really struggling with it... can anyone help me with the following, that I can't seem to get running:
#################
# Main Function #
#################
def main():
print ('Welcome to the Network analysis tool')
userInput = input ('What would you like to do: ')
if userInput == '-p' or '--passive':
#then run in passive mode
# elif userInput == '-a' or '--active':
#then run in active mode
#else
# help():
main()
When I try to run it, I get:
File "./net_recon.py", line 27
main()
^
IndentationError: expected an indented block
I have indented main() and get the same thing....
Thanks, C.
Please go easy on me, I am new to this and I have never programmed/scripted before.
I am trying to learn python, and really struggling with it... can anyone help me with the following, that I can't seem to get running:
#################
# Main Function #
#################
def main():
print ('Welcome to the Network analysis tool')
userInput = input ('What would you like to do: ')
if userInput == '-p' or '--passive':
#then run in passive mode
# elif userInput == '-a' or '--active':
#then run in active mode
#else
# help():
main()
When I try to run it, I get:
File "./net_recon.py", line 27
main()
^
IndentationError: expected an indented block
I have indented main() and get the same thing....
Thanks, C.