Aug-06-2020, 07:31 AM
Given a text file as input with each line representing an element (a, b, c, d... for the sake of this example), how would you write a python script that when executed prompts the user to choose between two of the elements of the list (eg "a or b", "a or c", ..., "c or d") enough times to return an "ordered" list based on your preferences?
Additionally, could you make the program continuously listen for left/right keystrokes for example when each choice is prompted? Instead of doing some sort of "Input 0 for left choice and 1 for right choice" and having to hit enter every time.
Thanks!
Additionally, could you make the program continuously listen for left/right keystrokes for example when each choice is prompted? Instead of doing some sort of "Input 0 for left choice and 1 for right choice" and having to hit enter every time.
Thanks!