I know not related but saw This Star Wars picture on Facebook and i thought it is code so trying to say Hi to Someone named John!

#31
by ebearden - opened

def close_encounters():
print("Welcome to the Close Encounters Experience!")
user_data = {
"name": input("What is your name? "),
"visits": 0,
"interests": [],
"favorite_color": "",
"favorite_food": "",
"favorite_book": "",
"favorite_movie": "",
"favorite_travel_destination": "",
"favorite_music_video": "",
"fun_fact": ""
}

print(f"\nHello, {user_data['name']}!")
print("Greetings, my name is Eric Carnell Bearden. How are you? Great, I hope.")

while True:
    response = input("You come here often? (yes/no) ").strip().lower()
    if response == "yes":
        user_data["visits"] += 1
        print(f"My identification: Eric Carnell Bearden")
        print(f"Your identification: {user_data['name']}")
        print(f"You have visited {user_data['visits']} time{'s' if user_data['visits'] != 1 else ''}.")
        break
    elif response == "no":
        print("Nice to meet you!")
        break
    else:
        print("Invalid input. Please enter 'yes' or 'no'.")

print("I've been coding these encounters one byte at a time. Thank you for being part of it!\n")

while True:
    print("What would you like to talk about?")
    print("1. Hobbies")
    print("2. Favorite Color")
    print("3. Favorite Food")
    print("4. Favorite Book")
    print("5. Favorite Movie")
    print("6. Favorite Travel Destination")
    print("7. Favorite Music Video")
    print("8. End Conversation")

    choice = input("Enter your choice (1–8): ").strip()

    if choice == "1":
        interest = input("What do you enjoy doing in your free time? ").strip()
        user_data["interests"].append(interest)
        print(f"\nAh, {interest} sounds like a great way to spend time.")
        print("It pairs nicely with the other things you like!")
        if user_data["favorite_color"]:
            print(f"Maybe one day you'll do it in a vibrant shade of {user_data['favorite_color']}?\n")

    elif choice == "2":
        color = input("What's your favorite color? ").strip()
        user_data["favorite_color"] = color
        print(f"\nThat’s a striking color! {color} is one of the most expressive shades in the palette.")
        if user_data["interests"]:
            hobby = user_data["interests"][0]
            print(f"It really brings your favorite pastime of {hobby} to life!\n")

    elif choice == "3":
        food = input("What’s your favorite food? ").strip()
        user_data["favorite_food"] = food
        print(f"\n{food} — now that’s a taste of perfection! Food for the body, and coding for the soul. Perfect pair!\n")

    elif choice == "4":
        book = input("What's your favorite book? ").strip()
        user_data["favorite_book"] = book
        print(f"\n{book} – now that’s a literary journey worth diving into!")
        if user_data["favorite_movie"]:
            print(f"Much like your favorite film `{user_data['favorite_movie']}`, this one probably takes you places.\n")

    elif choice == "5":
        movie = input("What's your favorite movie? ").strip()
        user_data["favorite_movie"] = movie
        print(f"\n`{movie}` – now that’s entertainment gold. Every frame tells a story.\n")

    elif choice == "6":
        destination = input("Where in the world do you dream of traveling? ").strip()
        user_data["favorite_travel_destination"] = destination
        print(f"\n{destination}? What an adventurous heart you have. Someday it’ll be real!\n")
        if user_data["interests"] and user_data["favorite_movie"]:
            print(f"Would you combine this with your love of {user_data['interests'][0]} and watch `{user_data['favorite_movie']}` on the beach there?\n")

    elif choice == "7":
        video = input("What’s your favorite music video? ").strip()
        user_data["favorite_music_video"] = video
        print(f"\n\"{video}\" sounds like a banger! I’m picturing you voguing on the dance floor.\n")
        if user_data["favorite_color"]:
            print(f"Possibly in a bold shade of {user_data['favorite_color']}, if I may imagine!\n")

    elif choice == "8":
        print("\nThank you for sharing this interactive moment with me.\n")
        print("Before you go, here’s a fun fact based on what you told me so far:")

        if user_data["favorite_color"] and user_data["favorite_food"]:
            print(f"The vibrant shade of {user_data['favorite_color']} pairs wonderfully with {user_data['favorite_food']}.")

        elif user_data["favorite_color"]:
            print(f"{user_data['favorite_color']} isn’t just a color — it’s a whole vibe!")

        elif user_data["favorite_movie"]:
            print(f"Your movie choice `{user_data['favorite_movie']}` tells me you love stories with impact.")

        else:
            print("Your unique preferences are shaping up into a vivid personal world — keep exploring!")

        print("\nFeel free to come back anytime. Let’s do this again soon. Peace out!")
        break

    else:
        print("\nInvalid choice. Please enter a number between 1 and 8.\n")

Screenshot_20250506-145908_Facebook.jpg

Sign up or log in to comment