Maxime Freddy Colette Beaudouin and Pierre Jean Michel Druguet, both 20 years old, admitted bringing the drug into Malta last Sunday. They were also guilty of being in possession of cannabis on 9 August.
Presiding magistrate Michael Mallia sentenced the young men to a one-month prison term suspended for two years.
Inspector Norbert Ciappara prosecuted while Dr Jason Azzopardi appeared for the French men.