DEV Community

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

Posted on • Edited on

2

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

Explica este código Python

Dificultad: Fácil

x = 1,
print(type(x))
Enter fullscreen mode Exit fullscreen mode

👉 A. <class 'list'>
👉 B. <class 'tuple'>
👉 C. <class 'dict'>
👉 D. SyntaxError


Respuesta:

👉 B. <class 'tuple'>

Si bien no se recomienda es posible escribir una tupla con una sintaxis sin paréntesis.

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay