Drop links or images here to add them to the editor.

In a make task you use the skills you have learned to create a program from scratch. There is no starter code: you begin with an empty editor.

You are going to write a room finder for a school timetable. A student tells it their name and which subject they are studying, and it answers with the room that class is in.

Your task

Ask the two questions with their own print, exactly as written, in this order:

Both questions are part of the checked output, so spelling, capital letters and punctuation count.

The output

For a subject that is in the timetable, print a line worded exactly like this. NAME stands for whatever the user typed as their name, ROOM for the room number from the list above, and SUBJECT for the subject the user typed:

Hi NAME, go to room ROOM for SUBJECT

For any other subject, print this line instead:

I don't know which room that class is in

Typing the subject

Python compares text exactly as it is typed, so Computing and computing are not the same string. The subject has to be typed exactly as it is written in the list above, with its capital letter. A subject typed any other way is one your program does not know, so it answers with the I don't know which room that class is in line. Compare the subject with == and leave it at that: do not try to make the comparison ignore capital letters.

Example

Input:

Ben
Computing

Output:

What is your name?
Which subject are you studying?
Hi Ben, go to room 401 for Computing

Input:

Mary Jane
Maths

Output:

What is your name?
Which subject are you studying?
Hi Mary Jane, go to room 210 for Maths

Input:

Dev
History

Output:

What is your name?
Which subject are you studying?
I don't know which room that class is in

Input:

alice
computing

Output:

What is your name?
Which subject are you studying?
I don't know which room that class is in

(computing is not Computing, so this subject is not in the timetable)

Help! My code doesn't work!

Make sure that you check for the following things:

  • Selection begins with if, has as many elif branches in the middle as you need, and ends with else.
  • There is a colon at the end of each if, elif and else line.
  • Every line inside a branch is indented, and all of them by the same amount. Never mix tabs and spaces in one file.
  • The if, elif and else lines themselves are not indented.
  • There is a condition after each if and each elif.
  • There is no condition after else.
  • You have used a double equals (==) to compare the subject. A single = stores data in a variable.
  • The subject names in your conditions are spelled and capitalised exactly as they are in the list above.
  • The string text is surrounded with speech marks, and the variable names are not.
  • You have used a + between each string and variable that needs concatenating.
  • Every space in the output comes from inside a string, so check the spaces around each variable.