1
If I have an input integer and an input list, it is possible to multiply the integer by the list?
M = int(input())
C = (eval('[' + input() + ']'))
That is, to have '’M'' lists according to the integer I put in M, hence I was forming the lists. The integer M defines the number of lists.
ex: M =2
C = [1,2,3]
[4,5,6]
I read and reread several times the title of the question and the text of the question (I believe a lot of people did it) itself and I still can’t understand what you really want. You could rewrite your text?
– user92257
Okay, it’s clearer now?
– Weslley
Aren’t you missing your multiplication operation? The answer wouldn’t be 2,4,6?
– user92257
No, it’s like if M = 2, I could put random values but only in 2 lists. The number M defines the number of lists.
– Weslley
You through an M defines how many list you will read? That’s it?
– user92257
Exact, but all with the same number of elements.
– Weslley
What is the doubt?
– user92257
how do I do this, '’M'' lists with 3 variables. M being an incial input, and then the lists the second input.
– Weslley
All lists in just one input? There are easier methods for this.
– user92257
That. Type x = int(input()) ; x=10 ; c = Eval('[' + input() + ']') ; ''2,3,4 ..... 5,8,2'' 10 such lists
– Weslley
It must be so?
– user92257
No, that’s the way I thought
– Weslley