I'm trying to resolve an exercise in python. It has an platform with some pre-code part and I have to enter some code to complete. But usually, I like ...
I'm trying to resolve an exercise in python. It has an platform with some pre-code part and I have to enter some code to complete. But usually, I like ...
I am getting a ModuleNotFoundError for a module that exists. I have a __init__.py and imported sys but I am still getting a ModuleNotFoundError error ...
I am attempting to read urls from a text file "url.com", append them to a list, then iterate the list to check if the url is an active website. I am ...
Unfortunately, there is no better way to do this, so please don't ask why I can't do it the normal way, it is too long to explain :). The issue is tha ...
If I have a project with two files main.py and main2.py. In main2.py I do import sys; sys.path.append(path), and I do import main, which main.py will ...
When I am running a Python program file, Pycharm does not show the program output. Instead each time the following message appears in the screen: I ...
Set missing value Tried data.to_csv(sys.stdout,na_rep='NULL') but it doesnt apply to first row ...
I tried to add a directory path to sys.path, but it gives me an error: import sys sys.path.append("C:\Users\tamer\Desktop\code\python\modules") Syn ...
I am trying to install the python sys package in my conda 4.13.0 environment on MX-Linux: The answer is: The same happens for other common use p ...
Input file looks like this I am trying do to following thing, 1-) Take shell commands from a txt file 2-) Store outputs of those commands in an anothe ...
I'm working on a little project which requiers input without "pausing" for each time. Without completely understanding how it works, I used some code ...
I don't really know the Python language, so I'm asking for help from experts. I have a simple script and I need to add a construct to it this is ne ...
I am trying to listen to the print function from __main__.py. I use the patch function from unittest.mock. The problem is, it returns an empty stri ...
I'm currently working on a project and I keep getting this error when executing a Python script: The function "get_soup_from_url" is getting import ...
I am trying to run the program 220_beta_1e-2_47_53ND.py using subprocess.run(). But the program doesn't run. Can somebody please help? ...
I need to create a simplified version of grep in python which will print a line when a keyword is used such as using this command "python mygrep.py du ...
While loading a python file in pycharm i am getting the following warning, earlier it was not there also print('Hello') is working as expected but i a ...
import sys import requests date = str(sys.argv[1]) from_currency=str(sys.argv[2]).upper() to_currency= str(sys.argv[3]).upper() amount=float(sys.argv ...
I would like to run a second Python script and to redirect the output of this second script to a text file. The scripts and the text file are in the s ...
I am using Jupyter Notebook. I tried to read this question which was really close to my problem, but I couldn't picture the directory tree of the ques ...