Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende ¿Mutable o Inmutable? | Familiarizándonos con los Números en Python
Tipos de Datos en Python

Desliza para mostrar el menú

book
¿Mutable o Inmutable?

Understanding the difference between mutable and immutable data types is crucial. Mutable data types can be changed after their creation, while immutable data types cannot be modified once created.

Los tipos de datos inmutables, como su nombre indica, no pueden modificarse una vez creados.
Por el contrario, los tipos de datos mutables son objetos que pueden modificarse una vez creados.

1234567
# Define a variable `var1` with an initial value var1 = 40 print(var1) # output: 40 # Change the value of `var1` var1 = 50 print(var1) # output: 50
copy
Tarea

Swipe to start coding

Imagine you are managing a budget for a small project. Initially, your available budget is set to $100. However, you receive an additional funding of $50. Update the value of the project_budget variable to reflect the total available budget.

Once you've completed this task, click the button below the code to check your solution.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 2

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

book
¿Mutable o Inmutable?

Understanding the difference between mutable and immutable data types is crucial. Mutable data types can be changed after their creation, while immutable data types cannot be modified once created.

Los tipos de datos inmutables, como su nombre indica, no pueden modificarse una vez creados.
Por el contrario, los tipos de datos mutables son objetos que pueden modificarse una vez creados.

1234567
# Define a variable `var1` with an initial value var1 = 40 print(var1) # output: 40 # Change the value of `var1` var1 = 50 print(var1) # output: 50
copy
Tarea

Swipe to start coding

Imagine you are managing a budget for a small project. Initially, your available budget is set to $100. However, you receive an additional funding of $50. Update the value of the project_budget variable to reflect the total available budget.

Once you've completed this task, click the button below the code to check your solution.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 2
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt