Skip to content
Advertisement

Tag: python-3.x

How to enter something into a program without arguments?

I am facing trouble with a code that I am working on. #1 code #2 code Now like the situation is that I want to use #1 code in #2 code, but as the #1 code doesn’t have arguments, i cant do ./start.py -i wlan0 or anything like that. Is there any other way round? Or just arguments. Note: I

How to stop loop running out of memory?

I’ve come back to programming after a long haitus so please forgive any stupid errors/inefficient code. I am creating an encryption program that uses the RSA method of encryption which involves finding the coprimes of numbers to generate a key. I am using the Euclidean algorithm to generate highest common factors and then add the coprime to the list if

Problems instaling libpq-dev in ubuntu 20.04

I am currently trying to install libpq-dev to install psycopg2. The problem is, when I try to install it, an error occurs saying I don’t have the latest libpq5 version. However when I try to download the newer version of libpq5 the system says that I already have the latest version. An example of the error. Answer I would say

Advertisement