El return solo me devuelve False en este m todo

0 votes

En este método el return solo me está devolviendo False, ya he intentado arreglarlo pero sin llegar a nada, no sé como corregirlo

el método es el siguiente:

def aprobar_lámparas (radio_1, radio_2):

  volumen_esfera_1 = clasificar_esfera(radio_1)

  volumen_esfera_2 = clasificar_esfera(radio_2)

  clasificar_esfera_1 = clasificar_esfera (volumen_esfera_1)

  clasificar_esfera_2 = clasificar_esfera (volumen_esfera_2)

  aprobar_esferas = True

  if (clasificar_esfera_1 == 1 and clasificar_esfera_2 == 2) or (clasificar_esfera_1 == 2 and clasificar_esfera_2 == 1):

    aprobar_esferas = True

  else:

    aprobar_esferas = False

  print("aprobar_esferas:", aprobar_esferas)

  return aprobar_esferas

Oct 19, 2020 in Python by anonymous
• 120 points
491 views

1 answer to this question.

0 votes

Hola amiga como estas

La función no devuelve falso, porque no devuelve nada. Su tipo de retorno es nulo. Recibe falso como parámetro

answered Oct 19, 2020 by Gitika
• 65,770 points

Related Questions In Python

0 votes
1 answer

Return a list inside a for loop while iterating over the elements of another list

The print() is getting called multiple times ...READ MORE

answered Sep 22, 2018 in Python by SDeb
• 13,300 points
5,065 views
0 votes
1 answer

What does the return statement do in Python?

The print() function is use to write ...READ MORE

answered Oct 1, 2018 in Python by SDeb
• 13,300 points
1,389 views
0 votes
1 answer

Does Python's time.time() return the local or UTC timestamp?

The time.time() function returns the number of seconds since ...READ MORE

answered Oct 5, 2018 in Python by SDeb
• 13,300 points
1,184 views
0 votes
2 answers

Why do we use return statement in python?

def maximum(x, y):     if x > y:     return x     else:    return ...READ MORE

answered Apr 4, 2019 in Python by anonymous
2,052 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,468 views
0 votes
1 answer
0 votes
3 answers

How to get the return value from a thread using python?

FWIW, the multiprocessing module has a nice interface for ...READ MORE

answered Dec 15, 2020 in Python by Roshni
• 10,480 points
108,008 views
0 votes
1 answer

what is vm options ? I installed Pycharm on my pc but it shows no vm options file found . What should i do please help me to fix it

Hi, @Mushfiqkhantrial, It is important to run pycharm.sh from the bin folder. The VM ...READ MORE

answered Oct 4, 2020 in Python by Gitika
• 65,770 points
1,869 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP