Python
GitBook docs section concerning Python context.
Menu Options
Create simple menu options in python script, with three entries.
def menu():
print("[1] First Entry")
print("[2] Second Entry")
print("[3] Third Entry")
print("[0] Exit")
menu()
menu_option = int(input('Select an option: '))
while menu_option != 0:
if menu_option == 1:
# do stuff for first entry
elif menu_option == 2:
# do stuff for second entry
elif menu_option == 3:
# do stuff for third entry
else:
# selected wrong entry
print()
menu()
menu_option = int(input('Select an option: '))
print()
print('Script terminated.')
Font Color & Style
Customize font and style of printed text in python script.
IP Scanner
Simple scripts that scans lan network IPs.
Version One (Unix only)
Version Two (Unix)
Version Two (Windows)
Last updated