The majority of Africa is no more dangerous than anywhere else on our planet. Areas of the big cities can be unsavoury after dark, as they can anywhere, and many have regions where it’s probably not advisable for outsiders to venture. But in most of your everyday travels you should encounter little to worry about.
Keep your money and valuables safe. Cash should not be kept all together on your person, and money belts are a good idea.