Convert A List To A Tuple

#3 · 3 of 30Free sample
Question

Convert A List To A Tuple

Create a list named `my_list` with [1, 2, 3]. Convert it into a tuple using tuple(my_list). Print the resulting tuple so it shows (1, 2, 3).
solution.py
Loading editor…
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
All exercises in Python: Data Structures (Lists, Tuples, Dictionaries, Sets)