logo

Crowdly

A la vista del siguiente código: from fractions import Fraction def numbe...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

A la vista del siguiente código:

from fractions import Fraction

def numberFunc(number1, number2):

    if type(number1) == int and type(number2) == int:

        return Fraction(number1, number2)

    elif type(number1) == float and type(number2) == float:

        return complex(number1, number2)

¿Qué valor muestra la siguiente instrucción?

print(numberFunc(1, 2.0))

0%
100%
0%
More questions like this

Want instant access to all verified answers on aulaga.dis.ulpgc.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!