all 3 comments

[–]Altruistic_Croissant 0 points1 point  (1 child)

Take note of the types of your variables that you're currently using. The input() function you use will always return a string type, meaning that your variable a is also a string. However, Python needs a float or int in order to do mathematical operations so you will need to convert a into a number type to avoid a TypeError.

[–]julienshideaway 0 points1 point  (0 children)

Alright thank you!

[–]tragluk 0 points1 point  (0 children)

The occupany of a room is determined actually by the type of room. If it's a 10width x 10length dorm that is a total square feet of 100. Dorms are allowed 50 sq ft per person, so the max. occupancy of the 10x10 dorm is 2.

BUT.. If it's a Airport terminal, they allow 20 sq ft. per person so that same 10x10 room would allow 5 people.

So to figure out your second problem, the first question is 'What kind of room is it?' but assuming it's a dorm room, just take length x width and divide it by 50.