Let say, I want to have a custom type that I call Size. Fundamentally, this type is nothing more than an int. However, I would like to have the following behavi
I have this model: class OrderProduct(models.Model): order = models.ForeignKey(to=Order, on_delete=models.CASCADE) product = models.ForeignKey(to=Produc
Given the RGB percentages of a color, e.g. "wild watermelon", (99%, 42%, 52%), the right RGB values are (252, 108, 133). But when I tried rgb_percent = ('99%',
I am preparing automation solution in Azure. I decided to use Azure Durable Functions. As per Durable Functions design I have created: Client Function (triggere
How I can save this: a=1b=2c=3d=4 into the table like this (I do not need header): 1 2 3 4 Thanks.
there is a lot of information about how to write Luhn algortim. I'm trying it too and I think that I'am very close to succes but I have some mistake in my code
I have similar question to one that has been asked several years ago, the link is down here. the thing is that all answers are in python 2 and does work for me.
So this is my code so far but at the end there i am trying to add a discount option. I am not sure how to add it to multiple products. Please let me know how i
I'm working on a Object Detection project for the game Cuphead using OpenCV and Python. Now I'm trying to capture objects in real time but when the detection wi
maybe it's a silly question, but I didn't found much while googling around. So I'm on the way to transform my development environment to a deploy environment. I
I have created a docker-compose file for localstack and I'm using only services like s3 and SQS. It works fine and I could create a dummy SQS, S3 from localsta
def functionA(): countries = ["Nigeria", "Uganda", "America", "Chad"] print(countries) name1 = input("choose a country you don't like:") for i in range(3):
I'm trying to produce a figure in Python that will line up the map coastlines from Cartopy with a RGB projection using satellite data (POLDER) that is fixed to
I am creating a booking website for hotels using Django, I used the booking api to get the hotels with its images and location highlights... I sent to the djang
I am trying to build an image steganography application and for the encoding part I have a form with two fields, one for image and one for the message that is t
I am actually trying to scrap a website. In fact I have a table like this below : Table I would like to navigate to the line that contains the word "Maîtr
im working on Simple RNN code with python, i want to use keras but when i run the code it show to me ( tensorflow error ), i uninstall tensorflow then i install
I made two modules in Python. The other one is a sentinel-controlled loop that asks for the data and the other module contains the functions needed for computat
I am having immense difficulty getting opencv-python to install on alpine. I have tried: Installing opencv-python==4.2.0.32 Using ubuntu instead of alpine Direc
im working on a website with flask so im trying to generate an url to see the reports linked to robots , so i have this route : @app.route("/robotReports/<in