Posts by Gabriel Schrader • 45 points
6 posts
-
1
votes1
answer183
viewsQ: Creating a Reverse Polish Rotation Calculator in C
need to do for an exercise an RPN calculator only for cases (+ - / * ), through batteries, it is necessary that the input is of type ABC+*, that the program understands this, the user of the values…
-
0
votes1
answer32
viewsQ: String for Vector(Array) in C
I am doing a code task and need to convert a string, for example: 123+* In an`(array) vector of type: 1 2 3 + * Does anyone know how I could do this in C? I’m a beginner and would like to learn.…
-
-1
votes1
answer76
viewsQ: Returning the inverse of a recursive sequence of numbers in Python
Well, it follows my code that aims to find the inverse of a list in python through recursive def inverso(n, seq): if len(seq) == 0: return else: ultimo_valor = seq[n-1] print(ultimo_valor, end=' ')…
-
-1
votes2
answers81
viewsQ: Insert the values of an N-size vector into the same Python line
Well, I made the following code, which is based on two vectors of size N that, multiplying the values of same Dice form a third vector resulting from this multiplication. n = int(input('')) vetor1 =…
pythonasked Gabriel Schrader 45 -
2
votes3
answers148
viewsQ: Count recurrences in a list
I made the following code to count the recurrences in a list: n = int(input()) n <= 100 and n >= 1 lista = [] for c in range(n): lista.append(int(input())) for v in lista: repete =…
pythonasked Gabriel Schrader 45 -
1
votes1
answer33
viewsQ: How do I make the code find the positions that x repeats and put them in output one per line? Python
How do I make sure that, in the following code, the values that show the position where x is repeated are each one per line? Except for the clasp and comma. from collections import defaultdict n =…
pythonasked Gabriel Schrader 45