Posts by Isabella Rosa • 31 points
3 posts
-
0
votes2
answers4333
viewsA: list, max/min in python
The problem was solved like this: import re pattern = re.compile(r"-?\d+\.?\d*") with open("C:/Users/lab2d/Downloads/lista2.txt") as f: numeros = pattern.findall(f.read()) numeros = [float(i) for i…
-
0
votes1
answer37
viewsQ: opencv in python
I need to make an algorithm that reads the color code and opens a window with the color. I know I need to use the library cv, but I don’t know how you do it and I can’t find anything like it on the…
-
3
votes2
answers4333
viewsQ: list, max/min in python
Hello, I need to make a python algorithm that reads a text file .csv which contains literally 5 million numbers and I need this algorithm to tell me which is the smallest and which is the largest…