Posts by Python Focus • 31 points
4 posts
-
0
votes3
answers5999
viewsQ: Inserted in a list of lists in python
I would like to fill in a list where each position of the same was a list. lista = [[], [], []] have an input: 44 45 49 70 27 73 92 97 95 and I would like to list the numbers so that the Index is…
-
0
votes3
answers783
viewsQ: How to input() stop after space instead of line break in Python3
I’m looking to capture several numbers on this graduate: 2 4 5 3 5 0 4 As a number of numbers undefined and without using an auxiliary list, I want to use only one variable for _ in range(0,n): num…
-
-1
votes2
answers812
viewsQ: How do you capture two integers with space between them in python3?
I want to capture two integers, example: 2 4 exactly so in python, but it by int(input()) normal n goes, I have done so, but must have another way: var = input() lista = [] lista = var.split(' ')…
-
1
votes1
answer1502
viewsQ: How to print an element from a list of lists in python
I have a list of lists, like: [ ('name1',size1), ('Nome2', size2)] I want to print just the name of each list, how could I do it?