~/ learn/ python-from-zero/ cards/ Lists
1 of 1

Append to a list, then sort it.

Append to a list, then sort it.

Answer

nums = [3, 1, 2] nums.append(4) nums.sort() print(nums)

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/5475c6f0-ac0b-4f54-b720-5294860f633a/flashcard utf-8 LF