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,977
» Latest member: stephaniehendrix
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 41 Guest(s)
Applebot, Bing, Google, Mojeek

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
7 hours ago
» Replies: 2
» Views: 217
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:21 AM
» Replies: 2
» Views: 847
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 893
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 588
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,940
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,354
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,931
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,358
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,275
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,598

 
  Need help to make an empty list with possibility to add
Posted by: Arnsol - Mar-19-2020, 10:33 AM - Forum: General Coding Help - Replies (1)

Question:
Add a trait "emner" to the class Student. This should be a list of topics, and represent topics that the student takes or have taken. The ..... More

Print this item

  Book 'Python in high school'
Posted by: arnbod - Mar-19-2020, 07:10 AM - Forum: News and Discussions - Replies (3)

I would like to promote the release of my book "Python in high school - Algorithms and mathematics".
It is a step-by-step explanation of programming..... More

Print this item

  Pass results of expression to another expression
Posted by: cmdr_eggplant - Mar-18-2020, 10:44 PM - Forum: General Coding Help - Replies (2)

I am attempting to pass the results of an expression to another expression. Here is an example of the code I am working with. For reference, this is f..... More

Print this item

  PyQt5 Help - Absolute Beginner!
Posted by: mnash48 - Mar-18-2020, 09:52 PM - Forum: GUI - Replies (2)

Absolute beginner here, have no idea what I am doing wrong. All I want to do here is have the pushButton in PyQt5 to change to "Working..." and Red wh..... More

Print this item

  proper use of 'end' in a 'with' statement
Posted by: ccrider27 - Mar-18-2020, 09:44 PM - Forum: General Coding Help - Replies (1)

Python newbie here.

Code snippet:

>>> with open('todos.txt') as tasks:
	for chore in tasks:
		print(chore, end=' ')
Synta..... More

Print this item

  task queue
Posted by: Valon1981 - Mar-18-2020, 09:29 PM - Forum: General Coding Help - Replies (8)

Hi,
I’d like to create a queue of tasks and share those tasks between two computers. I thought of just splitting the tasks evenly between the two com..... More

Print this item

  Help to find a string and read the next lines
Posted by: crlamaral - Mar-18-2020, 09:27 PM - Forum: General Coding Help - Replies (4)

Hello, I'm having trouble recognizing a specific line and reading two lines below it. I would like some help because I've tried many things and couldn..... More

Print this item

Question Formula / Algorithm help?
Posted by: alpho - Mar-18-2020, 06:16 PM - Forum: General Coding Help - No Replies

Hello,

I took on a project which is now 4,000+ lines of code and reaching completion. The last step of this project is to link the settings with th..... More

Print this item

  Rock, Paper, Scissors.. Help..hidden bug
Posted by: xxunknownxx - Mar-18-2020, 06:14 PM - Forum: General Coding Help - Replies (4)

everything running great but there is a bug that i cant find... there is not error coming back from this so basically i cant trace it back
--some ti..... More

Print this item

  Backtesting trading strategy
Posted by: Finpyth - Mar-18-2020, 05:37 PM - Forum: Data Science - Replies (1)

Hallo

This is my last question for my thesis.

I’m about to backtest my strategy, but ran into the problem that i have some price data from Eiko..... More

Print this item

  Sending data to php page
Posted by: ebolisa - Mar-18-2020, 05:34 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

I'm trying to send data to a PHP page, but I get the error

[quote]TypeError: POST data should be bytes, an iterable of bytes, or a file obje..... More

Print this item

  Python - List from csv files
Posted by: Wscwt011 - Mar-18-2020, 05:26 PM - Forum: General Coding Help - Replies (1)

I have a csv file that contains a set of records which represent a list of x,y coordinates.

I want to know how to get them from the file and into a..... More

Print this item

  Deny backslash using regex
Posted by: JohnnyCoffee - Mar-18-2020, 05:25 PM - Forum: General Coding Help - Replies (1)

My backslash don't work ?
SyntaxError: EOL while scanning string literal

Exemple backslash :

[python]
v_char = "search?q=\"

o_rex = re.matc..... More

Print this item

  How can I copy and paste data from text file into an Excel sheet?
Posted by: IrishOrigi - Mar-18-2020, 04:34 PM - Forum: General Coding Help - Replies (14)

I am trying to automate a process that basically reads in values from text files into certain excel cells. I have a template in excel that will read d..... More

Print this item

  Unexplained Phenomenon with Objects
Posted by: RoastyGhosty - Mar-18-2020, 02:34 PM - Forum: General Coding Help - Replies (1)

Consider the following class:

class a:
  def __init__(self,T):
    self.T=T
Now, if I set
[python]
x=a(3)
y=a(4)
[/pyth..... More

Print this item

  reformatting data frame
Posted by: tkirkland - Mar-18-2020, 02:17 PM - Forum: Data Science - No Replies

I am trying to convert a pandas data frame with multiple rows and multiple columns to one with singles rows and multiple columns. The current format ..... More

Print this item

  Scraping a dynamic data-table in python through AJAX request
Posted by: filozofo - Mar-18-2020, 01:42 PM - Forum: Web Scraping & Web Development - Replies (1)

Ref to the stackoverflow thread:..... More

Print this item

  Store DataFrame in a dict within two for-loops
Posted by: Aukru - Mar-18-2020, 09:31 AM - Forum: Data Science - Replies (1)

[python]
dict_of_results = {}

data = pd.read_csv('data.csv', sep = ';', index_col = False)
# data.csv looks like the following, containing 2 obj..... More

Print this item

  Error in Python3.6:free() Corrupted unsorted chunks error
Posted by: sameer_k - Mar-18-2020, 09:20 AM - Forum: General Coding Help - Replies (2)

I have multiple python scripts which push data in many tables of MsSql database.

I am using pymssql python package to connect to database. I have ..... More

Print this item

  Can python read Marathi text files and summarize them?
Posted by: mcp111 - Mar-18-2020, 08:58 AM - Forum: Data Science - No Replies

Can python read Marathi text files and summarize them as per this article

https://medium.com/@umerfarooq_26378/tex...on-76c0a41..... More

Print this item

  The logic of a main routine
Posted by: john7 - Mar-18-2020, 08:53 AM - Forum: General Coding Help - Replies (6)

In C all my functions run in the main loop
[python]
void main(void)
{
Init();
while (1)
{
DoSomeStuff();
}
}
[/pytho..... More

Print this item

  ? Headers: Keep-It=Simple; And=Stupid; With=Auto-Completion. Support HTTP, IMAP.
Posted by: Ousret - Mar-18-2020, 08:13 AM - Forum: Code sharing - Replies (1)

Hi,

I have a opensource project to share with you guys Smile

It is about : [i]Don't screw up reading Headers, Keep It Simple, Stupid ! HT..... More

Print this item

  XML question
Posted by: DPaul - Mar-18-2020, 07:46 AM - Forum: News and Discussions - Replies (2)

Hi,

I'm just being curious Cool
When i program with an xml database, i can e.g. add a new "record",
and even add a new field to existing r..... More

Print this item

  Replacing sub array in Numpy array
Posted by: ThemePark - Mar-18-2020, 04:19 AM - Forum: Data Science - Replies (5)

I'm trying to replace a sub array in a Numpy array, with an array of the same shape, such that any changes are mirrored in both arrays. I've run the f..... More

Print this item

  A question about encoding
Posted by: Exsul1 - Mar-18-2020, 12:11 AM - Forum: GUI - Replies (1)

I had to add .encode('utf-8') to the end of a string containing vowels with macrons (ā and ē) to prevent my Kivy app fr..... More

Print this item

  Need help comparing totals from list of dictionaries
Posted by: AnOddGirl - Mar-17-2020, 11:43 PM - Forum: Homework - Replies (1)

I need to write a code that will multiply the price of each item with its respective quantity and then return whichever dictionary has the highest tot..... More

Print this item

  Convert Int Value bigger 256 to Unicode
Posted by: lastyle - Mar-17-2020, 11:04 PM - Forum: General Coding Help - Replies (4)

Hi all,

i need to save a list which contains mixed data of unicode and int values.

I`d need to convert the int values before adding them to the list..... More

Print this item

  Unable to install Python
Posted by: russianponchik - Mar-17-2020, 08:56 PM - Forum: General Coding Help - Replies (2)

Hi,great community. I need your help. Cool
[Image: fMpwfkC]
See log here, thanks
..... More

Print this item

  How to select language/country in search () module
Posted by: Val - Mar-17-2020, 08:28 PM - Forum: General Coding Help - No Replies

I am trying to figure out how to get results from Google in a date range and in a specific language using search() from googlesearch library. It seems..... More

Print this item

  I experimented with a loop, and I don't understand how I got my output
Posted by: thinwheats - Mar-17-2020, 07:10 PM - Forum: Homework - Replies (7)

I am self-studying python while on the job. I have "Python Programming: An Introduction to Computer Science" by John Zelle, and I'm on page 44 learnin..... More

Print this item

  use Xpath in Python :: libxml2 for a page-to-page skip-setting
Posted by: apollo - Mar-17-2020, 06:03 PM - Forum: Web Scraping & Web Development - Replies (2)

hello dear Pythonists good day dear experts Smile
..good day dear Larz60+ and snipsat


my name is Apollo and i am pretty new to Python, BS4..... More

Print this item

  How can you add an attribute to a function within a class?
Posted by: sjaakthomassen - Mar-17-2020, 06:02 PM - Forum: Homework - Replies (2)

Hi,

I'm trying to add an attribute to a function / method within a class and then change it from within the function.
Couldn't figure out how to d..... More

Print this item

  Read microcontroller eeprom and feed into python to find checksums.
Posted by: mikeak2001 - Mar-17-2020, 04:51 PM - Forum: General Coding Help - Replies (2)

Good afternoon,

Looking for a little help if possible.
I've done some coding in python but not a massive amount.
In this case I've never done any..... More

Print this item

  looking for direction - scrappy, crawler, beautiful soup
Posted by: Sly_Corn - Mar-17-2020, 02:21 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello All,

I am looking for recommendation for a good start in building my first Python scraper script.
Actually I am not even sure if I should us..... More

Print this item

  python question
Posted by: strekasz - Mar-17-2020, 02:04 PM - Forum: Homework - Replies (1)

Hello! I am a beginner and I need help. What's the problem with this syntex? Thanks for the help

[python]class Alma

def __init__(x):

..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 7 hours ago fosuwxb buran Code sharing
  My goal to be hired worki... Today, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577364
  Tutorial Requ... 500725
  Web Scraping ... 441019
  Newbie with P... 385067
  New Users Int... 369574
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
stephaniehendrix Today
Williamcaurb Today
Schirag Today
Jacobjoift Today
sophielane Yesterday

User Panel Messages

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