Skip to content

Tag: python-3.x

Append an input to a method parameter list

I’m using a generic local crud so i can implement the same method for every single list, but when trying to add a value to a list it doesn’t update the root list but the parameter one does, any help? If i print the parameter “lista” when appends the new value it returns the list with t…

Python, random.randint does not print out

this is the code down below I am not sure if of the 22 variables it does not guess the number or have I done something wrong if you are reading this, Thank you so much for just attempting to help someone! you are a good person and are willing to help others Answer its very good to explain what

Concurrency for requests

I have a python script and I’m sending post requests to same url with different data(different ids). I have to send requests for each id and check them continuously to see if there is a change. I’m handling it with iterating an “ids” list with for loop and sending request for each id a…

Converting linreg function from pinescript to Python?

I am trying to convert a TradingView indicator into Python (also using pandas to store its result). This is the indicator public code I want to convert into a python indicator: https://www.tradingview.com/script/sU9molfV/ And I am stuck creating that pine script linereg default function. This is the fragment …

Qiskit and IPython conf files do not exist

I had installed the qiskit-textbook distribution of Qiskit using this command : pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src The tutorial then said to change the contents of the configuration file located at ~/.qiskit/settings.conf but I can’t …