Posts by João Moreira • 21 points
4 posts
-
0
votes2
answers139
viewsQ: Set functions for equal values and values in ascending order - Python
Hello, I set a function to read 100 records, containing name, gender and age, and now I need a separate function to show on the screen how many people are male and another separate function to show…
-
-4
votes1
answer172
viewsQ: Create functions in Python
I want to create a function that receives a vector of 10 records, in which each has name, state (SP or RJ) and age. And then a return function of how many people are from the same state. How could…
-
0
votes2
answers1192
viewsQ: Python matrices - Concatenate
Hello, I have two matrices and I would like to concatenate them, that is, put in a third matrix the matrices A and B one next to the other, in case form a matrix 3x6, but using a loop (command…
-
2
votes2
answers1328
viewsQ: Vectors names and ages - Python
I want to create two vectors, one for names and the other for ages, which can hold 10 people. I believe it would be: pessoas = [] idades = [] for c in range(10): pessoas.append(input('Digite o nome…
pythonasked João Moreira 21