Posts by yyyyyyyan • 61 points
2 posts
-
3
votes1
answer77
viewsA: Doubt the use of If, While or for
Juarez, the best way to do this type of filtering is through the technique of list comprehension: vetor_filtrado = [valor for valor in vetor if 30 <= valor <= 160] This assumes that the vector…
-
3
votes1
answer1218
viewsQ: Find out if a point is within a circle on a Cartesian plane
I was doing the task Target shooting of the 2013 Brazilian Computer Olympiad (OBI) at Programming level 2, which can be found here, and I was able to do it without great difficulty. The task was to…