Posts by Matheus Esteves • 61 points
4 posts
-
-3
votes1
answer177
viewsQ: Python multiplication using recursion without interactions of type `while` and `for`
I’m writing a multiplication calculator code that should use only arithmetic operators in the range of -10 >= x <= 10 and should always do the math under the best possible performance, ex.:…
pythonasked Matheus Esteves 61 -
2
votes1
answer93
viewsQ: Very long broken values not being recognized within If, in Python
I wrote this code below that asks you a number between 0 and 180. It is completely protected against values outside of this set and against letters. I would like to know why, for example, when I…
pythonasked Matheus Esteves 61 -
0
votes1
answer66
viewsQ: I can’t get the variables I created recognized when using Def
I wrote the code below which is a rectangle triangle calculator using def to define my custom functions. def pedir_base(): while True: try: base = float(input('Digite o valor da base do triângulo…
pythonasked Matheus Esteves 61 -
3
votes1
answer48
viewsQ: Doubt with If statements in R
In this code I am wanting to record the amount of values of z such that -1 < z < 1 inside x, and z < -1 or z > 1 in w. It rotates the rnorm(100)(that is, it creates 100 observations of a…