We want to make a row of bricks that have long goal inches. We have a number of small bricks (1 inch each) and large bricks (5 inches each). Go back True if it is possible to make the goal by choosing between the given bricks.
Function:
def...
Searching the web I found this code for communication between a client and a server
Server
#!/usr/bin/python
import socket #utilidades de red y conexion
ip = "192.168.0.18"
puerto = 4445
dataConection = (ip, puerto)
conexionesMaximas = 5
s...
In the next class, what object has the deleter decorator?
class C:
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
return self._x
@x.setter
def x(self, value):...
I have problems with Scrapy, for some reason when I run the project does not find my spider, but as much as I look at the code I can not find why. I had already used a similar code in another version of the code and found the spider.
I leave...
Hi, I would like to know how I can clean my canvas after having shown an image, place a name function to erase to be able to clean the image that was shown and to be able to select a new one and it will be displayed on the canvas. If someone can...
numero = int(input("Ingresa un numero:"))
h= str("minutos")
#min= numero//60
print (min)
print (h)
dec = round((numero*60),2)
Exercise 1.4
Write a code in which you request by screen that the user enter a number (the units are seconds). Onc...
I have been with this error for many days and I do not know what it is. Can someone help me? I already try several things and do the migration again but it does not let me
I am a beginner in python3, I have the following code that I am doing and paneas I go in the second option
def menu():
print ('Selecciona una opcion')
print ('1. Ver')
print ('2. Agregar')
print ('3. Eliminar')
print ('4. Modificar')
articulos...
I'm creating this function in Python:
def myThreshold(I,p):
Ibn = I;
if((p > 0) && (p < 256))
index = find(I >= p);
lbn = lbn * 0;
lbn(index) = 255;
return lbn
but on the line of the if an error app...