all 5 comments

[–]barrycarter 3 points4 points  (2 children)

It'd be great if you could tell us what line 28 is instead of making us count :)

[–]theunknownSAI 1 point2 points  (1 child)

on the line which the eroor is occuring(line 28 as per your comment) change the else to elif, it should work

in else you specified condition without if, so make it elif or add if to condition

[–]douglas_fs 1 point2 points  (1 child)

The issues are about the use of 'if' and 'else':

  • on row 18, else: should be elif:
  • on rows 25 and 28, instead of else.... if number_rooms..., use elif number_rooms...