I'm starting to program with python language, and one of my exercises is to do the factorial number of a number n
This is my code:
result=1
n=input("Deme un numero \n")
for i in range (1,n):
result=result*i
print(result)
my question is h...
The game works and everything but once you lose or win this message seems to you in the compiler (In my case I use spyder)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iC...
I would like to know how self works in python, I know that it has to do something with the classes but I do not have it so clear and I need to know to convert it into an arrangement, here there is little of the code
class Button(pygame.sprit...
Passing a csv to an array with pandas creates a column to the left of everything indicating the row number that it is. How could it be eliminated?
def cargar():
print("Indica la ruta donde se encuentra el CSV\n")
print("Si desea salir puls...
Well no idea what happened, change the code to another folder to send it and I have given these errors
No se puede cargar imagen: mmempty.png
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\IPython\core\interactiveshell...
I have a program that is constantly checking if something on the screen has changed place with a while and I would like to do a function that executes an action and waits for the seconds that I indicate to execute it again, the problem th...
I am currently developing an API in Python 3 with Django that is mounted on Kubernetes in Google cloud, using asynchronous workers with gunicorn (Gevent).
The problem is that I have a Post method which makes a validation to firebase to search...
The thing is that I've wanted to show the elements that interest me.
Let me explain, I have applied a threshold to only see completely white elements. (Having previously applied a gray filter)
_,threshold_frame = cv2.threshold(gray,2...
When I try to download datasets of ERA 5 I get the following error:
[Errno 2] No such file or directory: '/home/vinci/.ecmwfapirc'
This happens when you run the python script in the terminal.
What could be happening?
...