Posts by Lary • 1 point
4 posts
-
-3
votes1
answer89
viewsQ: You are giving variable not defined within an if
Art. 42. Can adopt the over 18 (eighteen) years, regardless of marital status. § 1º Cannot adopt the ascendants and the brothers of the adopting. § 2º For joint adoption, it is indispensable that…
-
-1
votes2
answers51
viewsQ: Product between vectors
The user chooses the number of positions of two vectors and makes the product between them and displays in the list the result, the code I made is below v1 = int(input("Digite a quantidade de…
-
-2
votes1
answer44
viewsQ: How to generate a user-defined list?
I want to create a list where the user sets the amount of items in the list and asks the user for each item in the list. I did it that way: n = int(input("Digite a quantidade de células da sua…
-
-2
votes3
answers72
viewsQ: How to manipulate cells from a vector?
I created a program that fills a 10-position vector with random numbers between 0 and 20. Now I need to show a new manipulated vector, where each cell is the sum of itself and the previous cells.…