Python Forum
"Travis" guest list name checker (Ziyad Yehia Udemy course)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Travis" guest list name checker (Ziyad Yehia Udemy course)
#5
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:
    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.
Reply


Messages In This Thread
RE: "Travis" guest list name checker (Ziyad Yehia Udemy course) - by jefsummers - Aug-23-2019, 04:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating guest list manager nickster11 1 2,968 Feb-08-2021, 02:44 PM
Last Post: deanhystad
  Password Checker Assignment mcostello 1 5,240 Nov-14-2020, 07:54 AM
Last Post: DPaul
  Palindrome checker case sensive edwdas 3 2,767 Nov-07-2019, 05:57 PM
Last Post: nilamo
  Syntax checker BZA 4 3,299 May-16-2019, 06:40 PM
Last Post: BZA
  Spell Checker Liquid_Ocelot 1 3,274 May-07-2017, 11:28 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020