DEV Community

Cover image for Ibuprofeno.py💊| #167: Explica este código Python
Cristian Fernando
Cristian Fernando

Posted on

1

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

Explica este código Python

Dificultad: Fácil

py = 2 + 3
print('py')
Enter fullscreen mode Exit fullscreen mode
  • A. 2+3
  • B. py
  • C. 5
  • D. Error

Respuesta:

👉 B. py

No confundir la variable py con el string 'py'.

La variable py esta declarada pero nunca llegamos a usar su valor.
Solo llegamos a imprimir el valor de la variable 'py'.

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay