DEV Community

Cristian Fernando
Cristian Fernando

Posted on • Edited on

1

Ibuprofeno.py💊| #25: Explica este código Python

Explica este código Python

Dificultad: Básico

## Reto #25
def fn():
  a=1
print(fn())
Enter fullscreen mode Exit fullscreen mode
  • A. TypeError
  • B. None
  • C. Null
  • D. SyntaxError

Respuesta en el primer comentario.

Top comments (1)

Collapse
 
duxtech profile image
Cristian Fernando • Edited

Respuesta:

  • B. None

Cuando una función en Python no regresa nada y es invocada automáticamente el interprete hará que regrese None.

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay