-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNameAnalysis.py
More file actions
29 lines (24 loc) · 853 Bytes
/
Copy pathNameAnalysis.py
File metadata and controls
29 lines (24 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import time
import socket
import subprocess
import HomemadeLibraries.DataGrabLib.DataGrab
from HomemadeLibraries import DataGrabLib
hostname=socket.gethostname()
IPAddr=socket.gethostbyname(hostname)
def form():
f_name = input ("First Name: ")
l_name = input ("Last Name: ")
print (f_name,l_name)
confirmation = input ("Is the above name your name?: ")
if confirmation == "Y" or confirmation == "Yes" or confirmation == "y" or confirmation == "yes":
print ("Thank You For Your Input,",f_name,l_name+"!")
print("Here Is Your Personal Data")
print("Your Computer Name is: "+hostname)
print("Your Computer IP Address is: "+IPAddr)
DataGrabLib.DataGrab.grabPrintData()
else:
form()
form()
time.sleep(15)
#Created By Montgomery Brown (05-Feb-2022)
#Last Edited (27-January-2023)