# -*- coding: utf-8 -*-
"""
BOOLEANS AND COMPARISONS
"""

sf_population, sf_area = 864816, 231.89
rio_population, rio_area = 6453682, 486.5

san_francisco_pop_density = sf_population/sf_area
rio_de_janeiro_pop_density = rio_population/rio_area

# Write code that prints True if San Francisco is denser than Rio, and False otherwise
if (san_francisco_pop_density>rio_de_janeiro_pop_density):
    print(True)
else:
    print(False)
#or like this which is more concise in this case
print(san_francisco_pop_density > rio_de_janeiro_pop_density)

