15,181 Topics

Member Avatar for
Member Avatar for Reverend Jim

I have been wrestling with this for two days now and getting nowhere. Something is broken, either the GridSizer control or me. I'm hoping it's me and someone can show me the problem. I've stripped my app of non-essentials. What I am building is a Sudoku app which consists of …

Member Avatar for Reverend Jim
0
1K
Member Avatar for linny_faith

Hi! I am creating a simple python tkinter calculator. However when I was due to submit my code in my teacher said that my code is inefficient and recommended i change the following: 1.) Create buttons using a for loop 2.) have two classes - one of which is for …

Member Avatar for slate
0
626
Member Avatar for linny_faith

Hi! I am creating a simple python tkinter calculator. However when I was due to submit my code in my teacher said that my code is inefficient and recommended i change the following: 1. Create buttons using a for loop 2. have two classes - one of which is for …

Member Avatar for woooee
0
579
Member Avatar for Tcll

class foo(object): __slots__ = ['__base__'] What's expected is for `foo.__base__` to be a member_descriptor object but instead what you get is: >>> foo.__base__ <class 'object'> >>> foo.__base__ is object True I guess something happens within the magic of class construction that makes use of `__base__` as an object. I stumbled …

Member Avatar for Tcll
0
921
Member Avatar for Nikki_4

#include <stdio.h> int main() int pv, cv, temp; temp = 15; pv = 1; printf("%d\n" ,pv); cv = 1 printf("%dn" ,cv); while (cv < 10) cv = temp; temp =pv; pv = cv; printf("%d\n ,pv); printf("%d\n ,cv); geche(); return 0;

Member Avatar for Reverend Jim
0
226
Member Avatar for Brad_7

i want to remove a card from a randomly shuffled deck. so that each time a card is picked from the again shuffled deck. that card is eliminated from further play until all 52 cards are drawn. in python3.7

Member Avatar for JamesCherrill
0
404
Member Avatar for Squidge

hi everyone. been a while since i have been on here, alot has changed. I am in the middle of amending/adding features to an installer using python. I have the dropbox API (for business) set up and working, upload and downloading without issue. The potential issue i see is during …

Member Avatar for rproffitt
0
1K
Member Avatar for vegaseat

This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, and that 1 is not considered a prime number. To find out if an integer n is odd one can …

Member Avatar for amir_19
3
24K
Member Avatar for jadonmurphy

So I have this for a sound crew to select jobs for workers based on the training they have recieved. My code allows you to add workers to the list and set what jobs they are allowed to do through use of inputs. The second Function then randomly creates job …

Member Avatar for Reverend Jim
0
260
Member Avatar for RAZ_2

I have a python script which extracts unique ip addresses from snort log but how to modify or use regex to extract IPs only if they are logged more than 10 times per second? more specific: using "regex", if the second (i.e 41 in this scenario) doesn't change for more …

Member Avatar for tdsan
0
16K
Member Avatar for Tanuj_2
Member Avatar for PranavBhattarai

My Java Sir told me to install MySQL-server, workbench, and connector. I did that somehow after spending 30+ hours reading different posts. After launching Workbench, I went to Tools > Start Shell for MySQL Utilities. Which gave me this popup: https://imgur.com/GQvHKsI Pressing Download option redirected me to this website: https://imgur.com/ETr2nrY …

Member Avatar for PranavBhattarai
0
785
Member Avatar for UNIQUE_PRINCE

Design a function named max that accepts two integer values as arguments and returns the value that is the greater of the two. For example, if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the …

Member Avatar for UNIQUE_PRINCE
0
374
Member Avatar for Iceman10284

Design a function named max that accepts two integer values as arguments and returns the value that is greater? For example: if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the user to enter two …

Member Avatar for UNIQUE_PRINCE
-1
4K
Member Avatar for suhitk121

I was solving a problem related to the scheduling. The problem statement is as below:- We want to keep a three months workshop in the university in which all the students of the university will participate. All the students will be trained by the lecturers of their own university for …

0
198
Member Avatar for Nihan_1

Hi all, I am trying to get the code I have working with PsychoPy3. The code was written using python and psychopy2 and with PyQt4. Now I have PsychoPy3 and PyQt5. Apperantly getting things work with PyQt5 is not really straitforward. Anyway, I have accomplished some. Now, I have an …

Member Avatar for Reverend Jim
0
278
Member Avatar for jeffmylife

## Intro ## Receiver Operating Characteristic (ROC) plots are useful for visualizing a predictive model’s effectiveness. This tutorial explains how to code ROC plots in Python from scratch. ## Data Preparation & Motivation ## We’re going to use the breast cancer dataset from sklearn’s sample datasets. It is an accessible, …

3
10K
Member Avatar for misstj555

Hello. I wanted to download a "Python IDE" called "PyCharm" to type code using the coding language "Python" for class. Here is the problem: When I open up the IDE called "PyCharm", it says that the "Python Interpreter" is not found. I suspected it was because I downloaded the "IDE" …

Member Avatar for misstj555
0
367
Member Avatar for Swetha_3

Hi, I have a .csv file in an AWS machine i wanted to convert that .csv file to .dat file? Can you please help me? Thansk, Swetha. G

Member Avatar for Nani_2
0
8K
Member Avatar for santosh_20

I can get the output with **data_2012['DeathRate ']** where there is a space after DeathRate but I can not get the same result without space after the DeathRate i.e, **data_2012['DeathRate']** in python.

Member Avatar for Reverend Jim
0
233
Member Avatar for Reverend Jim

As I continue my conversion from vbScript to Python I am finding the gotchas. For example... A lot of my utility scripts take a file name or a file pattern as a parameter. My script, bitrate.vbs, for example allows me to invoke it as bitrate file bitrate pattern Technically file …

2
1K
Member Avatar for Ayush_5

I need to extract the domain for example: (http: //www.example.com/example-page, http ://test.com/test-page) from a list of websites in an excel sheet and modify that domain to give its url (example.com, test.com). I have got the code part figured put but i still need to get these commands to work on …

Member Avatar for 10e12
0
423
Member Avatar for Ayush_5

I've tried inurl:http but it takes forever to get even a bunch of sites right and I have to think of new keywords everytime to get the sites. Is there kind of a directory or a script i could use to filter the http from all the sites on the …

Member Avatar for Ayush_5
0
335
Member Avatar for Reverend Jim

I'm having a problem with my python installation. The packages that came with the installation work just fine but when I try to use other installed packages I run into problems. For example, I installed a package `pymsgbox` using pip from an admin shell. When I run a sample script …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Lakshmi_6

Hi, I have to monitor outlook and trigger one code when ever new mail comes. Please help me.

0
234
Member Avatar for Terry_8

Have two CSV files containing client records and need to compare the two and then output to a third file those rows where there are differences to the values within the record (row) as well as output those records (rows) on the second file that are not on first file …

Member Avatar for Nani_2
0
32K
Member Avatar for De_2

Can someone explain me how can i check if an answer is right from question in files with python. In my files there are questions with three answers and among them one is the right one and the others are wrong. Users have to click on button to answer. Please …

0
175
Member Avatar for Vani_1

Dear members - I'm Vani Sharma and doing my graduation. Also, I'm learning Python and data science.

Member Avatar for happygeek
0
191
Member Avatar for it's_guy

![Untitled.png](/attachments/large/4/b37cb01c4fe2e908e745a6af2e4a7975.png) hello i am currently working on a python program that remote controlls multiple computers at once, as if they were multiple screens of one computer. one of the features of this program, is that the server controlling all computers, builds a map from screens, and including its own - …

0
172
Member Avatar for De_2

Hello guys, I need some help with a python program that i have to do for school. I don't know how to erase a button after using it. And how can i go to the next question after answering the first one. Please help me ASAP!

Member Avatar for Reverend Jim
0
298

The End.