/**
 * This function takes two numbers (real and imaginary) as input and returns the complex number representation in Python.
 * The real part is represented by the variable 'real" and the imaginary part is represented by the variable 'imaginary`.
 *
 * @param real The real part of the complex number.
 * @param imaginary The imaginary part of the complex number.
 * @return The complex number representation in Python.
 */
fun complexNumberRepresentation(real: Float, imaginary: Float): String {

    return when {
        real > 0 && imaginary > 0 -> "$real + ${imaginary}j"
        real < 0 && imaginary > 0 -> "$real + ${imaginary}j"
        real < 0 && imaginary < 0 -> "$real - ${Math.abs(imaginary)}j"
        real > 0 && imaginary < 0 -> "$real - ${Math.abs(imaginary)}j"
        else -> "$real"
    }
}

// Example usage
val result = complexNumberRepresentation(3f, 4f)
/**
 * This function takes two numbers (real and imaginary) as input and returns the complex number representation in Python.
 * The real part is represented by the variable 'real" and the imaginary part is represented by the variable 'imaginary`.
 *
 * @param real The real part of the complex number.
 * @param imaginary The imaginary part of the complex number.
 * @return The complex number representation in Python.
 */
fun complexNumberRepresentation(real: Float, imaginary: Float): String {
/**
 * This function takes two numbers (real and imaginary) as input and returns the complex number representation in Python.
 * The real part is represented by the variable 'real" and the imaginary part is represented by the variable 'imaginary`.
 *
 * @param real The real part of the complex number.
 * @param imaginary The imaginary part of the complex number.
 * @return The complex number representation in Python.
 */
fun complexNumberRepresentation(real: Float, imaginary: Float): String {

    return when {
        real > 0 && imaginary > 0 -> "$real + ${imaginary}j"
        real < 0 && imaginary > 0 -> "$real + ${imaginary}j"
        real < 0 && imaginary < 0 -> "$real - ${Math.abs(imaginary)}j"
        real > 0 && imaginary < 0 -> "$real - ${Math.abs(imaginary)}j"
        else -> "$real"
    }
}

// Example usage
val result = complexNumberRepresentation(3f, 4f)