Cocaine is also occasionally used as a legal medicine in Australia and some parts of Europe, if a person has a prescription from a doctor. Doctors sometimes prescribe cocaine for people who want to lose weight, because cocaine decreases the appetite. 