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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,558

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 37 Guest(s)
Bing, Google, AOL, AOL, Applebot, Facebook, Pedroski55

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
1 hour ago
» Replies: 2
» Views: 720
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 6
» Views: 752
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
9 hours ago
» Replies: 0
» Views: 71
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 472
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,849
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,249
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,816
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,228
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,178
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,481

 
  Annualised returns in python. Urgent request
Posted by: shivamdang - Apr-12-2020, 07:27 AM - Forum: General Coding Help - Replies (2)

hi,
I have a data from 1930 of stock returns monthly. I have calculated annualized return for the whole date as annualized_ret. Now I want the annual..... More

Print this item

  Hover event
Posted by: DT2000 - Apr-12-2020, 07:16 AM - Forum: GUI - Replies (9)

Good morning all, I have been reading a lot of different threads on various sites for information on how to make a simple hover routine for when a mou..... More

Print this item

  Array Dimensions - NEWBIE
Posted by: willowman - Apr-12-2020, 06:54 AM - Forum: Homework - Replies (2)

Hi all,

I'm looking at a problem in structural dynamics. I need to do a what I thought would be a fairly simple calculation of a 3x3 array transpo..... More

Print this item

  a script i want...
Posted by: Skaperen - Apr-12-2020, 05:38 AM - Forum: News and Discussions - Replies (6)

a script i want to make real quick because i want to use it. what want is something that will display a picture, given a file that has a (huge ... 80..... More

Print this item

  Turtle fillcolor?
Posted by: bobgardner - Apr-12-2020, 04:32 AM - Forum: GUI - Replies (2)

Hello turtle experts and maintainers. I think the turtle is always black? Is there a way to change the turtle fill color? I have a proj using turtle t..... More

Print this item

  for web scraping, what library other than selenium and scrapy are still good to use?
Posted by: Kai - Apr-12-2020, 03:43 AM - Forum: News and Discussions - Replies (1)

I use selenium and scrapy alot for web scraping.
Here are the main reasons I like those:

Selenium:
can access dynamic page
access iframe
it ..... More

Print this item

  is there any way to hid print()
Posted by: Kai - Apr-12-2020, 03:20 AM - Forum: General Coding Help - Replies (1)

I have a huge code that links with many functions. For debug purposes, I need to have alot

 print() 
in many of my functions. But it ..... More

Print this item

  a command to write i just thought of
Posted by: Skaperen - Apr-12-2020, 03:18 AM - Forum: News and Discussions - No Replies

i just needed such a command so i thought of writing it. it would be intended to compress a file and also report the compression ratio (input size / ..... More

Print this item

  what programming language to learn other than python in real mass-production product?
Posted by: Kai - Apr-12-2020, 03:02 AM - Forum: News and Discussions - Replies (1)

I am wondering what is the main programming language for mass-production physical product. Many people (for only those I know) was saying C++ is the c..... More

Print this item

  question about using javascript on python selenium
Posted by: Kai - Apr-12-2020, 02:24 AM - Forum: Web Scraping & Web Development - Replies (1)

I know we can apply javascript in python selenium in

driver.execute_script("some javascript code here")
I don't know anything ..... More

Print this item

  What basic maths is required to understand deep learning?
Posted by: Kai - Apr-12-2020, 02:15 AM - Forum: News and Discussions - Replies (1)

I am a new person knowing very little about deep learning. I know I can just go for module like tensorflow to learn using deep learning. But if I want..... More

Print this item

  Problem passing parameters between windows
Posted by: kenwatts275 - Apr-12-2020, 02:13 AM - Forum: GUI - Replies (2)

Hello all,
When my program is run, it prompts for a table name. After entering a table name and clicking on the "Delete Fields" button, the delete_fi..... More

Print this item

  Adding string numbers, while loop and exit without input.
Posted by: Jose - Apr-12-2020, 01:24 AM - Forum: Homework - Replies (11)

Python 3.7 / PySripter x64
So my homework requires that I write a program that asks the user to enter a series of single digit numbers with nothing s..... More

Print this item

  Add an element to a liste
Posted by: cyril31 - Apr-11-2020, 10:48 PM - Forum: Homework - Replies (1)

Hello, I must do the following task: Write a recursive function ajouter(element, set) which returns a set (represented by a list) to which a new eleme..... More

Print this item

  Combining Dictionaries w/o overwriting
Posted by: MC2020 - Apr-11-2020, 10:28 PM - Forum: General Coding Help - Replies (3)

Hello, I am trying to combine dictionaries into a single dictionary while retaining previous values.

I have provided an example code below. Ideally, ..... More

Print this item

  function error: undefined variable
Posted by: Atlantic_3000 - Apr-11-2020, 10:10 PM - Forum: General Coding Help - Replies (3)

Hi,
This is my first def function and i cannot figure out why i get a, Nameerror: name 'mpg' is not defined. Any help is much appreciated!!. **smil..... More

Print this item

  I am an absolute newbie.Help me!
Posted by: feynarun - Apr-11-2020, 08:52 PM - Forum: General Coding Help - Replies (4)

[python]print("If your credit score is good type G")
print("if your credit score is bad type B")
credit_score = input("Please enter your credit scor..... More

Print this item

  Finding python editor
Posted by: Python666 - Apr-11-2020, 08:24 PM - Forum: News and Discussions - Replies (4)

I know it's weird, but I'm looking for something to edit python in.
In my school we are not allowed to bring any type of digital device. Sad
Si..... More

Print this item

  python code help
Posted by: hindubiceps - Apr-11-2020, 08:16 PM - Forum: Homework - Replies (6)

Hello! Ineed some help with code. So I needed to print out one film list and my python shell looks like this.
1 ['Fringe', 'Series, Sci-Fi, Drama', 1..... More

Print this item

  Solitare Code Error
Posted by: zonix20 - Apr-11-2020, 08:01 PM - Forum: General Coding Help - Replies (3)

Hello, I am fairly new to Python and have taken on a project of creating a free cell solitaire game. The code runs perfectly except for this error I g..... More

Print this item

  Unable to find an existing module
Posted by: arbiel - Apr-11-2020, 06:35 PM - Forum: General Coding Help - Replies (2)

Hi everybody

I coded this script
[python]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import io
import xml.etree.ElementTree as..... More

Print this item

  matplotlib creating a scatter plot via PathCollection
Posted by: tpourjalali - Apr-11-2020, 05:59 PM - Forum: Data Science - No Replies

Hi there, first post here.
I'm trying to dig deeper into matplotlib and learn how it works under the cover. So I thought it'd be a simple task to dr..... More

Print this item

  SIR Model: Saving predicted value
Posted by: kiton - Apr-11-2020, 03:59 PM - Forum: General Coding Help - Replies (3)

Hello!

I am experimenting with SIR model for spread of disease using the following code. In particular, at each iteration I feed in different N, I0..... More

Print this item

  Error to install pygame
Posted by: skp - Apr-11-2020, 03:58 PM - Forum: Game Development - Replies (1)

Hi, I am trying to install pygame in python 3.7.0 version in windows 10 (32 bit)
please help me with below error.

C:\Python\Home> pip install pyga..... More

Print this item

  Python Pandas DataFrame Help
Posted by: AmericanEagle1989 - Apr-11-2020, 03:54 PM - Forum: Data Science - Replies (1)

Hello,

I am new and a beginner trying to learn. I have 4 rows in Lausanne. I have 4 rows in Morges. I don't understand why the below codes doesnt giv..... More

Print this item

  Loop a list and write to .xlsx
Posted by: urobee - Apr-11-2020, 03:41 PM - Forum: Web Scraping & Web Development - Replies (4)

This is a part of my scraper code.

There is a .txt file with some keywords (data.txt). The code is loop through all the keywords to find them on a ..... More

Print this item

  Using Pygame within Tkinter GUI
Posted by: Riddle - Apr-11-2020, 02:29 PM - Forum: Game Development - Replies (2)

I have been having fun coding small 'games' for my children, for practice, and I have been using Tkinter for my GUI. All of my 'games' have been writt..... More

Print this item

  Freelance
Posted by: Lass86 - Apr-11-2020, 02:00 PM - Forum: Bar - Replies (6)

Hello!

Do any of you have any experience in Freelancing as a programmer?

I'm looking into it and I'm curious what other people's experiences are. W..... More

Print this item

  Arithmetic exercice with python
Posted by: pythonuser1 - Apr-11-2020, 12:00 PM - Forum: Homework - Replies (4)

Hello Guys,

I have an arithmetic exercice and I am stuck.

"Your program should read the number of students that can hold a room, then the number of ..... More

Print this item

  re.sub(r"\W", v, s) vs. re.sub(r"\W+", v, s)
Posted by: ClassicalSoul - Apr-11-2020, 12:00 PM - Forum: General Coding Help - Replies (1)

Is there any difference between re.sub(r"\W", v, s) and re.sub(r"\W+", v, s)? Won't they both equally replace all non-alphanumeric characters in `..... More

Print this item

  Extension host terminated unexpectedly
Posted by: myhobby76 - Apr-11-2020, 11:31 AM - Forum: Bar - Replies (3)

hi..
update vs code 1.44 after this problem start
Extension host terminated unexpectedly.

antivirus - quick heal total
Repor..... More

Print this item

  getting data from txt's
Posted by: baris013 - Apr-11-2020, 10:32 AM - Forum: General Coding Help - Replies (2)

My question getting data from txt files. For example, in a folder i have 12 files lile sample01.txt, sample02.txt, sample03.txt, ..... sample12.txt. I..... More

Print this item

  screenshot
Posted by: arezoo - Apr-11-2020, 09:53 AM - Forum: Web Scraping & Web Development - Replies (3)

I want to take picture from page in different size(picture must be responsive)
i do not want use api.
the api that there is in this site(https://w..... More

Print this item

  Selenium/chrome console
Posted by: WiPi - Apr-11-2020, 09:52 AM - Forum: Web Scraping & Web Development - Replies (4)

Hi guys,

I am running selenium webdriver with headless Chrome (my basic code below) to scrape multiple web pages.

Does anybody know the correct..... More

Print this item

  Need help creating complex loop around existing script
Posted by: CephloRhod - Apr-11-2020, 09:43 AM - Forum: General Coding Help - Replies (5)

Hi all,

I have a script used to draw rectangles over multiple features within an image, based upon the pre-extracted x/y/r pixel coordinates of sai..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 1 hour ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 8 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 9 hours ago fosuwxb fosuwxb Code sharing
  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... 577314
  Tutorial Requ... 500572
  Web Scraping ... 440984
  Newbie with P... 385021
  New Users Int... 369484
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Yesterday
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday
PhamMaria Yesterday

User Panel Messages

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