If you are a beginner, it is much easier to stay alive as a big dumb warrior, such as a Barbarian, Valkyrie, or Samurai. These classes are much more likely to survive melee with monsters.
Race is not as significant as class, except that Elves have very low limits on their strength and constitution. An elf is capped at strength 18, other races can reach 18/50 or even the maximum 18/**. So, if you want to have an easier game, play as any race that is not an Elf.
Alignment (whether you are lawful, neutral or chaotic) is also not too important; its main effect is on the artifact weapons you can obtain by sacrificing to your deity. (Sacrifice is the process of carrying recently-killed corpses to an altar and #offer-ing them to your god.)
Gender (whether you are male or female) is relatively unimportant; the only real difference is that females can lay eggs if polymorphed into a suitable monster, and males can't. It also has the cosmetic effect of affecting whether incubi or succubi will try to seduce you.
Lawful Human Valkyrie is an excellent combination for several reasons. A Valkyrie starts with a highly enchanted small shield which can remain part of their armour for a long time. She also starts with a good weapon, and if she is lawful, then at experience level 5 (and more certainly by level 7), she can dip that weapon in a fountain to convert it into Excalibur. (The Lady of the Lake does not insist that you are a Knight, but she gets annoyed if neutral or chaotic characters try this trick.) Another weapon, Mjollnir, is their guaranteed first gift from sacrificing, meaning that if your god decides to give you an artifact gift, the first one will be Mjollnir. When the Valkyrie completes the Quest, she will win the Orb of Fate, which halves any damage that she takes, thus making it well worth lugging it around despite its weight. All three artifacts are among the best artifacts in the game.
The advantage of a Human Valkyrie over a Dwarven Valkyrie is that all inhabitants of the Gnomish Mines will be friendly and peaceful to the dwarf but not necessarily to the human. Some see this as a disadvantage, but dwarves and other monsters often found in the Mines are not particularly deadly. Dwarves are a useful source of food, experience and equipment if they are hostile. A Human Valkyrie can kill the dwarves for these benefits, while a Dwarven Valkyrie would have to kill peaceful monsters, and your god does not approve of killing peaceful monsters.
A few other classes have special features which may help you to learn about the game: