- 3

Using the `list()` function, write a statement that will create an empty list named `items`.

2nd Jun 2022, 1:22 PM
KarlTzy Bren
23 ответов
+ 1
KarlTzy Bren your teacher is trolling you😁. It's actually very sneaky. But here is a solution. Note the comma...😲 scores = list((False,)) * 100 print(scores) The list function requires an iterable. To create a one-item tuple of False, you need to write it like this: (False,) sneaky... scores = list((False,)*100) print(scores) is another alternative answer that works.
2nd Jun 2022, 4:52 PM
Bob_Li
Bob_Li - avatar
+ 4
learning is not a race. If you can't do something, maybe it means you have not understood the previous lessons. Take your time, build a solid foundation
2nd Jun 2022, 2:05 PM
Bob_Li
Bob_Li - avatar
+ 3
Okay, then just do that? If you need help, review the lesson and please show your code
2nd Jun 2022, 1:31 PM
Lisa
Lisa - avatar
2nd Jun 2022, 1:42 PM
Lisa
Lisa - avatar
+ 1
How are you planning to do the task without knowing how to create a list?
2nd Jun 2022, 2:03 PM
Lisa
Lisa - avatar
+ 1
Re-read your study materials. If you don't understand the basic concepts it is of no use to do advanced tasks. If the task is too difficult for you now, do it later. Instead of waiting for someone to give you ready-made code that you don't understand, revise the basics by doing some lessons in the sololearn course.
2nd Jun 2022, 2:08 PM
Lisa
Lisa - avatar
+ 1
The answer is literally IN THE TASK DESCRIPTION. 👉Use list() function
2nd Jun 2022, 2:09 PM
Lisa
Lisa - avatar
+ 1
It says it is named "items". READ THE TASK DESCRIPTION.
2nd Jun 2022, 2:16 PM
Lisa
Lisa - avatar
+ 1
In the time you spent trying to get others to do your homework for you, you could easily have figured out how to do this.
2nd Jun 2022, 3:15 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Bob_Li 😁 thank you so muchhhh 🖤
2nd Jun 2022, 5:06 PM
KarlTzy Bren
0
learn by doing.
2nd Jun 2022, 1:32 PM
Bob_Li
Bob_Li - avatar
0
Actually I don't know how:<
2nd Jun 2022, 1:41 PM
KarlTzy Bren
0
what are variable names? how to create a list?
2nd Jun 2022, 1:42 PM
Bob_Li
Bob_Li - avatar
0
Bob_li, It doesn't say what "variable names" and then "how to create a list" are😓
2nd Jun 2022, 2:15 PM
KarlTzy Bren
0
That's all there is to it.
2nd Jun 2022, 2:16 PM
KarlTzy Bren
0
But this problem is not the same as the topic in your title. That one is simply items = list() It is on your other question. So it might be confusing to others..
2nd Jun 2022, 5:35 PM
Bob_Li
Bob_Li - avatar
- 1
because our teacher gave us a task without discussing it :<
2nd Jun 2022, 2:05 PM
KarlTzy Bren
- 1
I know the other question but the lasty I don't know how.
2nd Jun 2022, 2:08 PM
KarlTzy Bren
- 1
Can you help me? 😭
2nd Jun 2022, 2:09 PM
KarlTzy Bren
- 1
I'm not good at English 😓 sorry for the wrong grammar :<
2nd Jun 2022, 2:17 PM
KarlTzy Bren