Vote count:
0
I have a script that uses manual entry to create a variable and upload to an API. We keep a CSV of the data that is uploaded. The first row of the csv is not important as it is the column description.
# Setting Variables
steward = raw_input("Please enter the name of the Steward(IT or Distributed Department): ")
print "The Steward is: ", steward
department = raw_input("Please enter the Department name: ")
print "The department is: ", department
appliance = raw_input("Please enter the Scanner Appliance name: ")
print "The Scanner Appliance selected is: ", appliance
subnet = raw_input("Please enter the IP address range in cidr notation(10.10.0.0/24): ")
print "The IPs of the Asset group are: ", subnet
location = raw_input("Please enter the location of the asset group(building and floor): ")
print "The Asset Group is located: ", location
#concatinate the title to the acceptable format
title = steward + ' - ' + department + ' - ' + location + ' - ' + subnet.replace(","," -")
the csv is formatted [Steward, Department, Location, Subnet, Appliance]
How can i use this to fill in the variables?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire