{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"generative_ai_disabled":true,"authorship_tag":"ABX9TyN70yE4LIV0fnS9qIW8rcIq"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":null,"metadata":{"id":"vW1fxqSMqDur"},"outputs":[],"source":["# Task 1 - Add comments to explain what the input line does,\n","# and when the program below will output the text 'This text is output because the condition was true'\n","# Then run the code to see if you're right.\n","\n","num1 = int(input(\"Enter a number\"))\n","\n","if num1 == 10:\n","  print(\"This text is output because the condition was true\")\n"]},{"cell_type":"code","source":["# Task 2\n","\n","#  Add comments to explain what the Boolean operator means.\n","\n","age = 18\n","\n","if age > 18:\n","  print(\"You are old enough to drive\")\n","\n"],"metadata":{"id":"7U8AXr98qcgY"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Task 3\n","\n","# Write a program that asks the user to input their name.  If they enter 'Dave' then the program outputs 'Hello Dave'.\n","# If they enter anything else, there is no output."],"metadata":{"id":"yD7h7bqBq2B2"},"execution_count":null,"outputs":[]}]}