{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"generative_ai_disabled":true,"authorship_tag":"ABX9TyOjB0LRBRdzgbYp6wFneGCk"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":null,"metadata":{"id":"i2S5yTCC1bfR"},"outputs":[],"source":["# Task 1\n","\n","  # The program below uses functions.  Add comments to predict the output in\n","  # the order that it has been coded here.\n","\n","def say_hi():\n","  print(\"Why hello there!\")\n","\n","def offer_drink():\n","  print(\"Would you care for a spot of tea?\")\n","\n","def offer_food():\n","  print(\"Biscuit?\")\n","\n","def say_bye():\n","  print(\"Cheerio then.\")\n","\n","\n","offer_drink()\n","say_hi()\n","offer_food()"]},{"cell_type":"code","source":["# Task 2\n","  # Rewrite the code to call the functions in the correct order so that the\n","  # output makes sense chronologically.\n","\n","  # Call the correct function so that the program says goodbye to the user.\n","\n"],"metadata":{"id":"SjVPVmnu1jtt"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Task 3\n","\n","  # Define a new function that tells the user a joke (you decide on the\n","  # function name and the joke).  Call it in a sensible place in the program.\n"],"metadata":{"id":"JHYQyHTE1pTf"},"execution_count":null,"outputs":[]}]}