Aug-23-2019, 04:12 PM
You are really really close.
First the slang - dunder means double underscore. So your line 32 would be read "if dunder name equals dunder main". Sorry for using slang.
In that script (the dunder stuff) the variable "placeholder" is filled with 2 items through the call to main. In the next line you call check on what you know should be in "placeholder" but the python interpreter does not. You need to add 2 lines right before you call check:
However, you have another problem - if you enter a name not on the list it asks if you want to be added. The problem is the comparison in lines 23 and 26. The person would need to enter a set of all 3 options to have that equal your set. I think you want to know if the response is in the list, not equal to the whole list which is what you are doing now. Fix those and I think you have a working version.
First the slang - dunder means double underscore. So your line 32 would be read "if dunder name equals dunder main". Sorry for using slang.
In that script (the dunder stuff) the variable "placeholder" is filled with 2 items through the call to main. In the next line you call check on what you know should be in "placeholder" but the python interpreter does not. You need to add 2 lines right before you call check:
guest_list = placeholder[0] user_name = placeholder[1]Then that part works.
However, you have another problem - if you enter a name not on the list it asks if you want to be added. The problem is the comparison in lines 23 and 26. The person would need to enter a set of all 3 options to have that equal your set. I think you want to know if the response is in the list, not equal to the whole list which is what you are doing now. Fix those and I think you have a working version.