Skip to content

How to connect to HTTPS connection to use an API in Python?

This is the requirement from the API’s documentation A HTTPS connection is needed to use the API. This means that you will require a secure SSL/TLS connection to be able to communicate with our API Server. This is the Curl command of getting the clients in their documentation So, I need to implement the…

How to make a circle using PIL?

As the title says I want to draw a circle in PIL but the output isn’t a circle The output: https://i.stack.imgur.com/qlYmD.png Code: I want to know how can I fix this problem. Answer To draw a circle of radius 50 with center at (150,150): To the ellipse you have to provide Two points to define the bound…

Decision tree with a probability target

I’m currently working on a model to predict a probability of fatality once a person is infected with the Corona virus. I’m using a Dutch dataset with categorical variables: date of infection, fatality or cured, gender, age-group etc. It was suggested to use a decision tree, which I’ve alread…

pushing and poping into new list

I am trying to make a loop that if the program sees a letter or number it will push(x) into a new list and if it sees an asterisk * it must pop(). It is more of a stack algorithm where the first letter or number in is the last one out. FILO First in last out For example If