{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"generative_ai_disabled":true,"authorship_tag":"ABX9TyP7sGqvxLRA9LDa1bqTHkgi"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":null,"metadata":{"id":"8_Hd-gjUsFAK"},"outputs":[],"source":[" # Task 1\n","\n"," # Add comments to explain the overall job of the program.\n","\n"," # Add comments to the code to explain the circumstances that would produce each output\n","\n","num1 = (int(input(\"Enter a number\")))\n","num2 = (int(input(\"Enter another number\")))\n","\n","if num1 > num2:\n","  print (str(num1) + \" is bigger.\")\n","elif num1 < num2:\n","  print (str(num2) + \" is bigger\")\n","else:\n","  print(\"The numbers are the same\")\n"]},{"cell_type":"code","source":["# EXTRA CHALLENGE - Why do we not need a condition after the 'else'?\n"],"metadata":{"id":"uPFMcsj1sOfs"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Task 2\n","\n"," # Add to the program so that if the user inputs 'Music' they get a message\n"," # saying 'Not bad, but Computing is better'.  For all other subjects the user\n"," # should get a message saying 'How wrong can you be? Computing is way better than that!'\n","\n","subject = input(\"What's the best school subject?\")\n","\n","if subject == \"Computing\":\n","  print(\"That is the right answer!\")\n","elif subject == \"computing\":\n","  print(\"You are correct, but Computing starts with a capital 'C' \")\n","\n"],"metadata":{"id":"6ZaDm76UsUxH"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Task 3 - Which room\n","\n","  # Write a program that asks the user for their name and which subject they are studying.\n","\n","  # The program should output a message telling the student by name which room\n","  # to go to for that class (make up the room numbers if you need to).\n","  # You should include at least 3 subjects and have a message such as 'I don't\n","  # know which room that class is in' for any you don't include.\n","\n","  # Example - for input of 'Ben' and 'Computing' might get an output of 'Hi Ben, go to room 401 for Computing'\n",""],"metadata":{"id":"NOvIGx7ZsYKY"},"execution_count":null,"outputs":[]}]}