133k views
21 votes
Let x = ["Red", 2.55,"Green", 3,"Black","false"], then solve the following:

1. The output of print(x) is

2. The output of print(len(x)) is

3. The output of print(x[10]) is

4. The output of print(x[1]+x[3]) is

User Paul Ishak
by
5.6k points

1 Answer

13 votes

Answer:

  • Print(x) would be directly calling the x variable so it would print everything but the []
  • Print(x[10]) is calling the number 10 which results in E
  • 2 + d= 2d

User Hossein Piri
by
5.3k points