Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,588

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 35 Guest(s)
Bing, Apple, Google, AOL

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Biks
6 hours ago
» Replies: 1
» Views: 1,812
My goal to be hired worki...
Forum: News and Discussions
Last Post: Biks
6 hours ago
» Replies: 3
» Views: 1,114
real community
Forum: News and Discussions
Last Post: Biks
6 hours ago
» Replies: 4
» Views: 3,065
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
8 hours ago
» Replies: 5
» Views: 170
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 4
» Views: 140
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 89
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,556
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 252
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,063
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 484

 
  In linear time, find the maximum sum of all possible contiguous subarrays
Posted by: Exsul1 - Oct-01-2019, 11:18 PM - Forum: General Coding Help - Replies (29)

Per an interview question offered as a "question of the day," how would you find, given an array of integers, the maximum sum of all possible contiguo..... More

Print this item

  local variable 'doc' referenced before assignment
Posted by: Kriti - Oct-01-2019, 10:29 PM - Forum: GUI - Replies (3)

Hi All,
I am trying to write the python GUI Code which creates the PDF based on user input and the excel sheet.It takes the user input create the doc..... More

Print this item

  I dont understand bytes in python.
Posted by: blackknite - Oct-01-2019, 10:20 PM - Forum: General Coding Help - Replies (3)

Everything is so confusing here, ie:
[python]>>> z = b'\x93\x39\x02\x49\x83\x02\x82\xf3\x23\xf8\xd3\x13'
>>> list(z)
[147, 57, 2, 73, 131, 2, 130, ..... More

Print this item

  Running multiple Shell with No latency
Posted by: law - Oct-01-2019, 09:48 PM - Forum: General Coding Help - No Replies

Hello Friend,
I recently wrote 6 scripts which are scrapping data from an online site.Each script is different and performs a given task in a certain..... More

Print this item

  DHT11 output to website problem
Posted by: cjdock - Oct-01-2019, 08:29 PM - Forum: General Coding Help - No Replies

Hello folks,
I don't program very much but can usually figure out code issues but no luck with this.
So, I have a raspberry pi and the humidity/temp..... More

Print this item

  comparing integers and fractions
Posted by: tantony - Oct-01-2019, 08:22 PM - Forum: General Coding Help - Replies (3)

I'm writing a script to get data from an aviation website. The problem is that, sometimes the value of 'visibility' could be an integer such as 10, b..... More

Print this item

  How do I make zip() append a value to a key?
Posted by: rm197 - Oct-01-2019, 06:18 PM - Forum: General Coding Help - Replies (1)

I have these two arrays:

arr1 = ['sub1', 'sub1', 'sub2', 'sub1', 'sub1', 'sub2']
[python]arr2 = [1.9 , 2.2 , 9.1 , 7.3 , 4...... More

Print this item

  AttributeError: 'top_block_sptr' object has no attribute 'change_param_1'
Posted by: Hadad - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (2)

In this exercise, I am using a python webserver to change the parameters' values inside my configuration file (.ini file). To do that I have a few wid..... More

Print this item

  Need help urgent
Posted by: fireablade - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (1)

Im trying to run a file, however i keep getting this error

"InstaPy Version: 0.6.4
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use..... More

Print this item

  download from python
Posted by: mpellegrini - Oct-01-2019, 04:18 PM - Forum: Networking - Replies (6)

I'd like to download a file present at follow link

But the follow code python get me the error "HTTPError: Unauthorized":

import urllib.request
url ..... More

Print this item

  How does a single object see all the values inside it?
Posted by: jenniferruurs - Oct-01-2019, 03:56 PM - Forum: General Coding Help - Replies (1)

Bellow I have some code, I was wondering how it is possible that the object root looks like if I have list of object (I expect a single object)

I g..... More

Print this item

  Moving Files
Posted by: Evil_Patrick - Oct-01-2019, 03:54 PM - Forum: General Coding Help - Replies (4)

Newbie Alert

[python]
import os
import glob
import shutil

path = input('Enter folder location: ')
os.chdir(path)

try:
os.makedirs('..... More

Print this item

  Problem in creating a vector
Posted by: termo - Oct-01-2019, 03:38 PM - Forum: General Coding Help - Replies (11)

I need to create a vector A_vec. The code line is:

[python]
self.A_vec = [self.B[0:j], self.B[j] + self.C / self.D, self.B[j+1:len(self.E)]]
[/py..... More

Print this item

  Store data in array
Posted by: kasper1903 - Oct-01-2019, 03:34 PM - Forum: Homework - Replies (4)

Hi guys.

I have some trouble with this code. I want to store my data from a csv into an array - The data consist both of text, dates and numbers. ..... More

Print this item

  get and reuse the token value with huawei modem
Posted by: Reims - Oct-01-2019, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi there,
so i want to read some sms received in my huawei modem.

For that i m tryin to first get the token and session id from the 'http://192.1..... More

Print this item

  Inspect.getmembers with isclass returns an empty list
Posted by: Aldar - Oct-01-2019, 03:20 PM - Forum: General Coding Help - Replies (1)

Hello all!

I am awfully new to this site, but my lack of ideas has brought me here in hope that I might get help in here.

I am making an app, th..... More

Print this item

  Call pip3 from python folder build by me call pip3 from the /usr/bin
Posted by: Suryavarman - Oct-01-2019, 03:14 PM - Forum: General Coding Help - Replies (3)

I have build the latest release of python3 on a Mageia7 system.
Here the configuration command line:
[inline]./configure --prefix=${PY_PATH} --enable..... More

Print this item

  Registering user's drop down menu choice and finding corresponding line in files
Posted by: ShadeLily - Oct-01-2019, 12:56 PM - Forum: GUI - Replies (2)

My program uses three files to store information: "names.txt", "birthdays.txt" and "comments.txt". Every entry is on matching lines.

It gets its in..... More

Print this item

  How to resolve scipy differences?
Posted by: Oliver - Oct-01-2019, 12:54 PM - Forum: Data Science - Replies (2)

In Pycharm, I am importing "import scipy.misc" and the code that calls scipy.misc.comb(...) works fine. The scipy version in Pycharm is 0.19.1...... More

Print this item

  convert sh script to python script
Posted by: Reims - Oct-01-2019, 12:10 PM - Forum: General Coding Help - No Replies

hi, i have a sh script code and need to convert it into python script.
i m struggling finding the correspondant command.


so here is my sh script..... More

Print this item

  y-axis on seaborn heatmap not aligned properly
Posted by: amjass12 - Oct-01-2019, 10:37 AM - Forum: General Coding Help - No Replies

Hi all,

I am having an issue with a heatmap on seaborn when using pycharm (not sure if this is the right forum so apologies if this is the case)
..... More


Attached Files

Thumbnail(s)
   
Print this item

  a generator that computes squares of first 20 natural numbers
Posted by: mdshamim06 - Oct-01-2019, 10:26 AM - Forum: Homework - Replies (1)

Problem Statement:

Define two functions f1 and f2 such that,
f1 returns a list of squares of first 20 natural numbers using list comprehension.
f..... More

Print this item

  .py to no setup output
Posted by: Shaswat - Oct-01-2019, 08:58 AM - Forum: General Coding Help - Replies (1)

Hi,

I have been using python to automated few things from last couple of months. Personally, I prefer py2exe to convert my .py file to executable. ..... More

Print this item

  Looking for solution in Python
Posted by: ankitasharma111 - Oct-01-2019, 08:04 AM - Forum: General Coding Help - Replies (1)

Looking for solution in Python

Dataset 1:

Variable Source
Apple Fruit
Cherry Fruit
Banana Fruit
Peas Vegetable
Mango Fru..... More

Print this item

  Regression Event
Posted by: navigates - Oct-01-2019, 07:57 AM - Forum: Data Science - Replies (1)

I have a requriement

I have to perform a regression on a data set that has the following data
Age of Person at time of data collection
Date
chol..... More

Print this item

  Segmentation fault with large files
Posted by: kusal1 - Oct-01-2019, 06:44 AM - Forum: General Coding Help - Replies (3)

Hi,

Here I'm trying to remove double quotation character from all text files. I'm getting an error "Segmentation fault" while I reading more than 8gb..... More

Print this item

  text box field
Posted by: vishnu - Oct-01-2019, 06:20 AM - Forum: General Coding Help - Replies (4)

Hi, how to check whether the field is Textbox using python in selenium web driver.

Print this item

  Yahtzee
Posted by: sdickey9480 - Oct-01-2019, 03:41 AM - Forum: Homework - Replies (1)

The following program is a simplified version of Yahtzee, using only 3 die, and keeps a running total of your score vs the computer. Can anybody tell ..... More

Print this item

  Scraping a CRM
Posted by: OscarBoots - Oct-01-2019, 03:29 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi Forum,

I'm trying to scrape some data regularly from the company CRM (Customer Relationship Management) tool that contains all the data entered ..... More

Print this item

  Unsolicited GitHub
Posted by: ichabod801 - Oct-01-2019, 01:26 AM - Forum: News and Discussions - Replies (7)

I have some GitHub repositories, and as some of you probably noticed, I've put a lot of work into the t_games one. So I got a pull request from someon..... More

Print this item

  translate \ to / ?
Posted by: Skaperen - Oct-01-2019, 12:25 AM - Forum: General Coding Help - Replies (4)

i see many examples where / filename separators are used for Windows. but a user of my script on Windows might type in \ as the file separator. shou..... More

Print this item

  Python code suddenly not working anymore
Posted by: mike_b - Oct-01-2019, 12:17 AM - Forum: General Coding Help - Replies (5)

I have a not too complicated python code that I have used pretty much every day until last week. It just reads an Excel file and lets me pick items an..... More

Print this item

  how to set character buffering?
Posted by: Skaperen - Oct-01-2019, 12:08 AM - Forum: General Coding Help - Replies (2)

how can i set character buffering on stdout so that print('foo',end='') immediately outputs "foo" without a newline?

Print this item

  Function question
Posted by: JimBob9432 - Sep-30-2019, 11:20 PM - Forum: Homework - Replies (2)

So, for my homework assignment, I am required to write a function called "check_answer" which will determine if a given addition or subtraction proble..... More

Print this item

  Need help with an assignment, not an answer.
Posted by: celtickodiak - Sep-30-2019, 10:59 PM - Forum: Homework - Replies (4)

So I was given code to essentially begin the assignment, but for some reason I cannot for the life of me figure out where to go with it. I tried to do..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 6 hours ago decuser Biks News and Disc...
  My goal to be hired worki... 6 hours ago GnomeSweetGnome Biks News and Disc...
  real community 6 hours ago decuser Biks News and Disc...
  print does not open conso... 8 hours ago Tycho_2025 Tycho_2025 General Codin...
  create ocr to detect lice... 10 hours ago bimosora Pedroski55 General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
Most views
  The best Prog... 577510
  Tutorial Requ... 501555
  Web Scraping ... 441116
  Newbie with P... 385167
  New Users Int... 370028
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020