title: How to input variables in command prompt and compare the input variables with other variables
body: <p>I would like to first explain what this application/Python program does so that you have a better understanding of the problem. I am an absolute beginner in programming so please take it easy on my i have tried my best to explain it as vividly as i could.
  This application will be used to test 4000 devices for there correct software hardware version and other information. How it does this is through the Web-server, each device has a 2D code(its like a barcode) which will be scanned, this scanned code contains the mac address and the ordernumber. firstly when i run the program on command prompt it should look like this :
  <a href="https://i.stack.imgur.com/gC3Q3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gC3Q3.png" alt="Example parameters" /></a>
  I should be able to define what the desired variables are hence typing it manually in the command prompt EXCEPT for the scancode which will automatically appear when I used the 2D scanner and scan the code which will be on the device exterior. The scancode contains the devices mac address(last 12 digits) and the Order number(first 5 digits) i found out how to dissect it and compare it with the webserver's Mac address and order number.</p>
  <p>Once i have defined the desired values for Order number Hardware version Software version etc these &quot;desired&quot; values need to be compared with the webserver values. (Please see my Python code for reference i take the webserver values through xml.dom and then compare it with the desired values to see if the values are correct.
  So far i have only manually defined the desired values in the source code but I want to define them on the command prompt line after calling the programm &quot;C:\Users\Barry\Automate main.py&quot;
  I hope you guys have understood the problem i am facing, I want to know if anyone can help me solve this task i have googled a so much about this but i cannot find out how to do it.
  In the picture i have uploaded the values underlined in red are to be manually input and the blue one is the scan code which will automatically appear when I scan the device.
  I tried several things with input() method but yeah it did not work out example:</p>
  <pre><code>print(&quot;./productionreview -output test.csv&quot;, &quot;--desired-orderno = &quot;,input(),  &quot;--desired-hardwareversion = &quot;,input(), &quot;--desired-softwareversion = &quot;,input(),&quot; --pc-praefix&quot;,input(), &quot;--desired-device-type=&quot;,input(), &quot;--scancode=&quot;, &quot;58183#99AF0M000F9EF3F800&quot;)
  </code></pre>
  <p>Here is my code guys please go easy on me if i have not used the right terms i am so new to the programming world but it is interesting.</p>
  <pre><code>
  print(&quot;./productionreview -output test.csv&quot;, &quot;--desired-orderno = &quot;,input(),  &quot;--desired-hardwareversion = &quot;,input(), &quot;--desired-softwareversion = &quot;,input(),&quot; --pc-praefix&quot;,input(), &quot;--desired-device-type=&quot;,input(), &quot;--scancode=&quot;, &quot;58183#99AF0M000F9EF3F800&quot;)
  
  # Desired Values
  
  # Timestamp
  now = datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)
  
  # Eingabe von scancode
  scancode_string = input()
  scan_code_cropped_mac = scancode_string[12:]
  scan_code_cropped_artikel = scancode_string[:5]
  #print(scan_code_cropped_artikel)
  #print(scan_code_cropped_mac)
  print(scancode_string)
  
  print(&quot;Current device information: &quot;)
  print(now)
  print(100*&quot;&quot;)
  
  # Order number
  print(&quot;Desired Order number:&quot;,d_ordernum)
  print(&quot;Order number from scancode :&quot;,scan_code_cropped_artikel)
  print(&quot;Ordernumber from wbm: &quot;, ord_nmr)
  if d_ordernum == ord_nmr == scan_code_cropped_artikel:
      print(&quot;Order number PASS&quot;)
  else:
      print(&quot;Order number does not match&quot;)
  print(100*&quot;&quot;)
  
  # Hardware version
  print(&quot;Desired Hardware Version:&quot;,d_hw_version)
  print(&quot;Hardware Version from wbm: &quot;, v)
  if d_hw_version == v:
      print(&quot;Hardware version PASS&quot;)
  else:
      print(&quot;Wrong Hardware Version&quot;)
  print(100*&quot;&quot;)
  
  # Software version
  print(&quot;Desired Software Version:&quot;,d_sf_version)
  print(&quot;Software Version from wbm: &quot;, b)
  if d_sf_version == b:
      print(&quot;Software version PASS&quot;)
  else:
      print(&quot;Wrong Software Version&quot;)
  print(100*&quot;&quot;)
  
  # Mac address
  print(&quot;Mac address from scancode :&quot;,scan_code_cropped_mac)
  print(&quot;Mac address from wbm: &quot;, mac_addr)
  list_of_chars = mac_addr.split(&quot;:&quot;)
  mac_address_string_joined = ''.join(list_of_chars) 
  if scan_code_cropped_mac == mac_address_string_joined:
      print(&quot;Correct MAC address&quot;)
  else:
      print(&quot;Fail&quot;)
  print(100*&quot;&quot;)
  
  d_product_code = pc_praefix + &quot;-&quot; + d_sf_version + &quot;-&quot; + d_hw_version
  product_code = pc_praefix + &quot;-&quot; + b + &quot;-&quot; + v
  print(&quot;Desired product code: &quot;,d_product_code )
  print(&quot;Product code of current device: &quot;, product_code)
  print(100*&quot;&quot;)
  
  print(&quot;Desired device type:&quot;,d_dev_typ)
  print(&quot;Device type from wbm: &quot;, dev_typ)
  if d_dev_typ == dev_typ:
      print(&quot;Device type PASS&quot;)
  else:
      print(&quot;Wrong device type&quot;)
  print(100*&quot;&quot;)
  </code></pre>
  <p>I could really use your suggestions and example code guys</p>