Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Mutable or Immutable? | Знайомство з числами в Python
Типи даних у Python
course content

Зміст курсу

Типи даних у Python

Типи даних у Python

1. Знайомство з числами в Python
2. Істина чи брехня?
3. Рядки
4. Поєднання всіх тем разом

book
Mutable or Immutable?

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Завдання
test

Swipe to begin your solution

Change the value of the variable var1 to be 150.

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

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2
toggle bottom row

book
Mutable or Immutable?

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Завдання
test

Swipe to begin your solution

Change the value of the variable var1 to be 150.

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

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt