Skip to content

Tag: python

Pycharm Window Not Displaying Correctly

I followed a Youtube tutorial for creating a Chess engine in Python code for code but it will not work in Pycharm? I can see that the correct chess board has been created but only when I close the pop-up window. Initially it shows as a black screen, then when I close the window it briefly appears before shutt…

Subtracting from inner list

There is 5 fundraising projects, and the purpose of this program is to substract the amount of money that each of n donators will donate from the desired sum of each project The program partially work, but sometimes python typing “TypeError: ‘NoneType’ object is not subscriptable” and …

Regex find hash comments exclude curly brackets

I want to find the hash comments that don’t contain the text inside curly braces. But if it starts with #, it’s all comments. Input: Output: I want to be able to achieve what I want with one line of regular expression. Currently I can only find all strings starting with # by {.*?}(*SKIP)(*F)|#[^#{…

I would like to take a data from in the csv file

this is the equivalent of my csv file; this csv file has 8000 data. I want to separate the “a”, “b”, ,”c”, … “z” in the customer column with the quantity column. this csv file is just an example, actually customers are too many. I don’t know the cust…