15,175 Topics

Member Avatar for
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
784
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
371
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
197
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
296
Member Avatar for GamerRunerrabits

Hello, so im making an os in pydroid 3, but i cant make a clock, im trying to make a graphical os but i cant cause i need a clock, Any idea? And i edited someones code for username and password to work, but i had to delete raw_data or …

1
606
Member Avatar for Abhays01
Member Avatar for Gabriel Hinojosa

Your goal is to write a Python function that takes a file handle as input and returns the most common words in the text file

Member Avatar for rproffitt
0
334
Member Avatar for GGomez

I have to write a python program that get a keyboad number and verfiy using the def function. Help n = int(input("Write a number") def countdown(n): if n >= 0: print('Blast off! Zero down') else: print(n) countup(n+1) countdown(3)

0
296
Member Avatar for karansingh

I have a bunch of variables as below.Now, I want to build a variable dynamically as below by iterating through for loop but surprisingly this won't work as .format can only be implemented for strings. Could anyone share your thoughts like how can this be implemented in Py? build_a="123" build_b="456" …

Member Avatar for Aakashdata
-1
313
Member Avatar for Aakashdata

I am a fresher and want to learn Pandas (Python). A few professionals I talked to suggested I use the book "Learning Pandas" by Michael Heydt. Should I give it a try? Do you have any other suggestions for me?

Member Avatar for Abhays01
0
249

The End.