import cmath def convert(numbers): num = cmath.polar(numbers) return (num)