The title is kind of hard to understand, but here's basically what I'm trying to do. I'm trying to make something that takes a list of variables like this:
no beta stupid motorbike yes big_boom
and convert it into something like this:
list = ['no', 'beta', 'stupid', 'motorbike', 'yes', 'big_boom']
The end goal is to search this list of variables and to find ones that conflict with each other. For example:
if exist 'yes' and 'no' in list:
fail
else:
pass
Another example, seeing it more in action:
list = [no beta stupid motorbike yes big_boom]
if 'no' and 'yes' exist:
myVar = 1
#some code to convert list into something like new_list
new_list = ['no', 'beta', 'stupid', 'motorbike', 'yes', 'big_boom']
if myVar = 1:
#code to delete 'no' from the list, or multiple variables from list
final_list = ['beta', 'stupid', 'motorbike', 'yes', 'big_boom']
#some code to convert back into something like the original list
okay_this_is_the_last_list = [beta stupid motorbike yes big_boom]
print(okay_this_is_the_last_list)
#this should print to the console:
#beta stupid motorbike yes big_boom
It is really complicated, but I appreciate any and all help!
Questions or comments:
https://docs.google.com/document/d/1tRHFHr8bp6_E31lhgYBKrwWb-2qscHoUWb6lVLlY4cc/edit?usp=sharing