For a unit test, I need a zipfile that contains directory entries. In a pinch, I could create one manually and keep it in the repo in binary form, but ...
For a unit test, I need a zipfile that contains directory entries. In a pinch, I could create one manually and keep it in the repo in binary form, but ...
So I'm creating a code in python 3.3 where you have to guess a song with only the first letter of the song and artist so I formatted my text file like ...
I wrote this code to remove all new lines from a string' yet it prints the value with \n I still get this output: 4762-9539\n' how can I remove all th ...
I have my list I have my filepath I also have a for loop that attempts to take the values from listnumbers though it creates the first empty ...
I need iterate over the dictionary and find keys of certain values. The dictionary is as follows : also I am having a list which I want to che ...
Let's start by considering this code: proc_stdin.py test.py Output: My question is, why is the output of both run_bad & run_good not equ ...
I have a program that reads the top 5 (or all scores and usernames if there are less than 5 people on the leaderboard of a .csv file, called leaderboa ...
I'm writing a 2 player dice game where two 6-sided dice are randomly rolled. If the sum of the dice are even, + 10 to the total of the two dice thrown ...
When you enter the correct answer ("Bad Guy"), it prints score = 3 and score = 1 at the same time? How do I prevent this so after getting it right in ...
Have error with xgoogle library When I tried to use this code: I get this error: ...
I need someone to help me code this WITHOUT using external libraries panda imports exceptions counters Words from 2D list that appear more than 2 t ...
PEP-380 introduces the yield from syntax and says: where is an expression evaluating to an iterable, from which an iterator is extracted. So the fo ...
I have to install python 3.3.5 particularly to use the api for OriginPro. However, when I try to install pip installation manager by downloading the g ...
Am getting import errors in google collab Jupyter notebook on statsmodels packages such as logsumexp and factorial. Please suggest. I have re-ins ...
I am creating an ATM using python code, and I need to create deposit and withdraw functions that behave just like an ATM would. Separately, the deposi ...
I'm setting up an IPC method on python script and want to implement mutex synchronization method. How i can do to implement it ? I found this library ...
I'm new at Python and trying some exercises I found on-line. The one I'm busy with requires an text input first, folowed by an ineteger input. I get s ...
I'm writing a Sublime Text plugin that provides multiple Python shells accessible via UNIX sockets. Each shell should act as a standalone REPL running ...
I have a directory with thousands of descendants (at least 1,000, probably no more than 20,000). Given a file path (which is guaranteed to exist), I w ...
I have to include a function in my code and so I wrote the code below but I do not know how to add all the even numbers between the two numbers entere ...