Oct-23-2020, 05:13 PM
I would put all the messages in a list, as you do, but without the intermediate step of assigning them to a variable first.
import random messages = [ "I Love you more than...", "I wish I could give you...", "I love you so muchhhhhhhh...", "I really hope you days are...", "Your one of my favorite people...", "I understand how you feel..." ] print("Hi! I really missed seeing you today </3") print("I was wondering about how you were feeling.") print("I remembered that you said that most day's you were feeling down...I was hoping maybe I could cheer you up maybe even a little with some jokes and stuff,,,;-;") hru = input("How are you feeling today then..? ") if hru in ["Good", "good", "great", "Great", "okay", "fine"]: print("I'm glad to hear that your day is going well, I hope it stays okay, just remember that I'm here for you <3") else: print(random.choice(messages))Actually I think I would put the messages in a file so they could be easily changed.
with open('daily_affirmation.txt', 'r') as file: messages = file.readlines()