I am currently working on an automation task. I have arrived at a part of the script where I need confirmation from the user to continue. For example the script is automatically entering some values in Selenium for the user however I need confirmation from the user that these are the correct variables. Let's say I want to output this list into the command prompt:
['ESPN', 'ESPN Radio', 'ESPNews', 'ESPN2', 'ESPN3']
The user then can enter 'ESPN2'
and my script will continue with the rest of its processes. How would I go about implementing the first portion of this? I believe the second portion of this task would involve using sys.argv[0]
to correctly store the value the user enters back. However the issue is with the first part, how do I implement this so that my script knows to pause and wait for the user input? Thanks!