First introduction to using the chatbot and it doesn't function as shown in the video

The first assignment already doesn’t work. When I ask the chatbot to modify print (“Hello world!”) to say hello to me. My name is Farid. It doesn’t do what it does in the video when given the exact same prompt. Instead of giving me print (“Hello Farid!”) it gives me print ("Hello, " + name + “!”).

Now it’s saying this:

Hi faridmbarki84,

The output of a chatbot is based on sampling from a distribution of possible tokens. This is done to avoid the model getting stuck in a loop due to always picking the most likely next token.

This means that the chatbot can provide different answers to your question. If you try the different outputs of the chatbot, you will see that these work. So this is common for chatbots.