Try a Challenge

Experience the micro-learning format without signing up. This is a sample Python challenge.

Python Basics: List Operations

What will be the output of this code?

numbers = [1, 2, 3]
numbers.append(4)
print(len(numbers))

3
4
[1, 2, 3, 4]
Error