Computer Science, asked by tansi30, 1 month ago

Write a python program to take 3 inputs as name from user and then check if name exists in list if found print “welcome message “ else print “sorry”. Define list with your own names and use membership operator to do this.

Answers

Answered by robinphili24
2

Answer:

Should be easy enough.

Explanation:

members_names = ["Robin Philip","Richa Alice"]

member_check = input("Please enter your first name:")

member_check2 = input("Please enter your last name:")

member_full_name = member_check + " " + member_check2

if member_full_name.title() in members_names:

   print("Welcome")

else:

   print("Sorry, your name does not appear to be in the members list.")

Please mark me as the brainliest. Please. :(

Similar questions