In general, nouns ending in -o are masculine, and those ending in -a are feminine, though there are many exceptions.