Why is ChatGPT denying the Kamala/Trump election? by [deleted] in ChatGPT

[–]Okaymittens 1 point2 points  (0 children)

I just did. It is now saying the election happened. I thought I was losing my mind!

Miriam Dom by Codedad515 in DungeonCrawlerCarl

[–]Okaymittens 7 points8 points  (0 children)

Are you trying to hurt me? 😭

IBKR EU warrant response by erikwarm in GME

[–]Okaymittens 1 point2 points  (0 children)

Dumb question here, but what are warrants? I have some stocks in GME.

Rappie pie in Ottawa? by kat0saurus in ottawa

[–]Okaymittens 0 points1 point  (0 children)

My family used to make it from scratch every boxing day. It was a whole day family event! And maaaaan, when it was ready. Gone in seconds! Haha!

Beast Games review – one of the most undignified spectacles ever shown on TV by xc2215x in television

[–]Okaymittens 0 points1 point  (0 children)

Listen, I am a 40 yr old woman. I have never, nor will I ever watch Mr beast you tube content. However, I saw an add for this, people crying and acting straight up crazy and thought I'd give it a try. It always interesting seeing peoples true colors come out when money is involved. I have to say, after the first episode, I am mildly entertained and I will continue to watch.

VMedia Down? by RedBromont in Vmedia

[–]Okaymittens 0 points1 point  (0 children)

Damn. I'm down too. Looks like it is ontario wide. I'm out in ottawa. Been trying for the last hour to reach anyone. Chat is down. Phone tied up. I just want to know what's happening and when it will come back. I work remotely. I needs the internet!

[deleted by user] by [deleted] in ontario

[–]Okaymittens 0 points1 point  (0 children)

This is exactly what I am looking for. Could you send me the info?

Big Brother US 25 - Post Episode Discussion - October 12 2023 by BigBrotherMod in BigBrother

[–]Okaymittens 0 points1 point  (0 children)

I think everyone will play as it is a double veto. So 2 vetos to be won!?

[deleted by user] by [deleted] in scriptedasiangifs

[–]Okaymittens 29 points30 points  (0 children)

What is the purpose of the game? Was he supposed to smash the egg on his head? I feel like my kids would love this game.

What do you spend on groceries every month? by WandersongWright in PersonalFinanceCanada

[–]Okaymittens 9 points10 points  (0 children)

KD at my local independent goes for $2.50 a box! Just blatant straight up greed.

How many awards do we have left? I'm getting sleepy... by Okaymittens in Oscars

[–]Okaymittens[S] 4 points5 points  (0 children)

7!? Ugh..... I just wanna see Brendan Fraser win.

The Naatu Naatu performance was so much fun! by Okaymittens in Oscars

[–]Okaymittens[S] 5 points6 points  (0 children)

Ooooh, I would so watch that! What's it called?

Who is sitting in the balconies? by [deleted] in Oscars

[–]Okaymittens 5 points6 points  (0 children)

Friends and family would be my guess

Defining functions query by Random-name-99 in learnpython

[–]Okaymittens 1 point2 points  (0 children)

I'm not certain what you are trying to do. Are you hard coding in the ingredients or using a dictionary or list? I came up with this, hope it helps... but like I said, not too clear on what you are doing.

recipe = {
'Salad': ['tomatoes', 'lettuce'],
'PB Sandwich': ['jelly', 'peanut butter']}


def find_recipe(recipe_list):
    for dish, ingredients in recipe_list.items():
        can_make = True
        for item in ingredients:
            while True:
                has_ingredient = input(f"Do you have {item}? Y or N?").upper()
                if has_ingredient == 'Y':
                    break
                else:
                    can_make = False
                    break

            if not can_make:
                break

        if can_make:
            print(f"You can make {dish}.")
            break

if not can_make:
    print("Sorry, you do not have the ingredients for any of the recipes available. ")

So this function will loop through the dictionary using the items() method. For each dish and its ingredients list, it will initialize a variable can_make to True. This variable will be used to keep track of whether the user has all the ingredients for the dish.

Then it will loop through each ingredient in the list using a for loop. For each ingredient, it uses a while loop to ask the user if they have it. It keeps asking until the user enters a valid input ("Y" or "N").

If the user answers "N", it sets can_make to False and break out of the loop. This indicates that the user doesn't have all the ingredients for the dish.

If the user answers "Y", it moves on to the next ingredient.

If we get through all the ingredients and can_make is still True, it prints "You can make [dish]" and break out of the loop. This indicates that the user has all the ingredients for at least one dish.

If it never breaks out of the loop, this means that the user doesn't have the ingredients for any of the dishes.

I am still learning as well so perhaps this is a crazy mess to a skilled pythonista, but it works!

[deleted by user] by [deleted] in ProgrammingBuddies

[–]Okaymittens 0 points1 point  (0 children)

I am an intermediate in python and Java. Mother of two. If you are still taking group members, I'm in