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,948
» Latest member: victorcrown
» Forum threads: 38,726
» Forum posts: 175,524

Full Statistics

Online Users
There are currently 57 online users.
» 0 Member(s) | 53 Guest(s)
AOL, Mojeek, Google

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 5
» Views: 9,195
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 101
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 498
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 136
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 657
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,883
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,176
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,531
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,102
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,844

 
  Replacing a words' letters in a string
Posted by: cananb - Dec-01-2020, 04:02 PM - Forum: General Coding Help - Replies (2)

Hi everyone, I am a beginner in Python. This is a challenge that I've found in a forum. This program is censoring the words' (which has given by the u..... More

Print this item

  Syntax Error: Outside a function?
Posted by: aplusfordao2702 - Dec-01-2020, 03:03 PM - Forum: General Coding Help - Replies (2)

ordered_list = [2, 4, 6, 8, 10]

guess = input('Guess a number: ')

for element in ordered_list:

if element == guess:
return ..... More

Print this item

  Spatial Optimization with a lot of variables
Posted by: Gerkamspiano - Dec-01-2020, 12:58 PM - Forum: General Coding Help - No Replies

Hello, I need to carry on a land-use spatial optimization where in each cell I need to assign only one type of land use. I optimize with respect two o..... More

Print this item

  Coding Mechanics
Posted by: 321brian - Dec-01-2020, 12:58 PM - Forum: Data Science - Replies (7)

I have the following code snippet below:
[python]
import pandas as pd
import statsmodels.formula.api as sms

fat = pd.read_csv('https://s3-us-wes..... More

Print this item

  URL check
Posted by: erdravi - Dec-01-2020, 10:08 AM - Forum: General Coding Help - Replies (4)

Hi

I want to find programmatically, whether a given URL is accessible via internet/intranet.

Thanks.

Print this item

  General linear model with repeated measures
Posted by: Ziv1279 - Dec-01-2020, 09:19 AM - Forum: Data Science - Replies (1)

Hi everyone,
I am trying to perform a general linear model with repeated measures.
I know how to do it on 'STATISTICA' but I am now starting to use Py..... More

Print this item

  Failing to Zip files
Posted by: tester_V - Dec-01-2020, 02:46 AM - Forum: General Coding Help - Replies (4)

Hi, I'm trying to find files that have digits in a file name.
then I'd like to zip files to another directory.
My code finds the files I want and mo..... More

Print this item

  Bar Chart axis
Posted by: Blyzz - Dec-01-2020, 02:36 AM - Forum: Data Science - No Replies

I am trying to create a bar chart for statistical parity difference where the value is 0.22222. I am using matplotlib and want to change the x axis to..... More

Print this item

  Generating a student's transcript [OOP concept]
Posted by: aongkeko - Dec-01-2020, 12:42 AM - Forum: Homework - Replies (2)

Hi,

This is part of my homework. We're trying to learn/apply some concepts of OOP in this exercise.

This is what I've got so far.
[python]
d..... More

Print this item

  JSON response from REST service get nested value
Posted by: nl2ttl - Nov-30-2020, 09:18 PM - Forum: General Coding Help - Replies (2)

When I try to do a priceticker on the Bitvavo API ik get a JSON list response. How do I get one or two values from this list.

[python]


from py..... More

Print this item

  no module named finbert found
Posted by: ErnestTBass - Nov-30-2020, 07:33 PM - Forum: General Coding Help - Replies (4)

The following code generates a error:

[/code]
from pathlib import Path
import sys
sys.path.append('..')
import argparse
import shutil
import ..... More

Print this item

  how to scrape a website from a keyword list
Posted by: greenpine - Nov-30-2020, 07:06 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello;
I am new to Python,
I am trying to scrape a website using search keywords from a list (text file), loop through each line of keywords until eac..... More

Print this item

  I there a more efficient way of printing ?
Posted by: Capitaine_Flam - Nov-30-2020, 06:10 PM - Forum: General Coding Help - Replies (7)

Hi, I need that my values be printed in a standard way for a data logger and I'm trying to be printed like this :
(1, 2, 3)
It's sounded like a ver..... More

Print this item

  Why Pass Functions as arguments?
Posted by: muzikman - Nov-30-2020, 04:48 PM - Forum: General Coding Help - Replies (14)

Greetings,

I am starting to learn Python coming from other OOP languages and I am experiencing a little confusion on the topic of passing functions..... More

Print this item

  How to extract and label audio using timestamp annotation
Posted by: Mergorine - Nov-30-2020, 04:44 PM - Forum: General Coding Help - No Replies

I would like to extract and label certain segments of an audio file (audio.wav). The start and end times of the segments are given by the DateTimeStam..... More

Print this item

  Find _ in a list
Posted by: 1234 - Nov-30-2020, 04:31 PM - Forum: General Coding Help - Replies (15)

Hi,
I was wondering is there a way that you can find the largest number in a list that is equal or smaller than my chosen number, without going throu..... More

Print this item

  how do i play an mp3 from a list
Posted by: gr3yali3n - Nov-30-2020, 04:29 PM - Forum: General Coding Help - Replies (3)

i get how to play a mp3 with python vlc no problem what i am trying to figure out is the best way to store a album and be able to call any song from t..... More

Print this item

  Using a .bat file to execute simple anaconda commands in Windows 10
Posted by: gacg1 - Nov-30-2020, 03:24 PM - Forum: General Coding Help - No Replies

Hello everyone!

I'm trying to create a shortcut in Windows 10 to enter anaconda and execute a simple command in a virtual env.

I'm trying with this ..... More

Print this item

  Python 3.7, Windows 10, pyinstaller, winsound, no sound in executable
Posted by: kmarien - Nov-30-2020, 03:16 PM - Forum: General Coding Help - Replies (3)

I'm trying to make a christmas card in python. If a run the program with python it runs fine.

but after:

[code]pyinstaller cc.py -w -y --clean -..... More

Print this item

  Flask migrate sqlalchemy not found
Posted by: TomasAm - Nov-30-2020, 02:51 PM - Forum: Web Scraping & Web Development - Replies (2)

Good day,

I am trying to make migration via Flask/Migrate/SQLAlchemy and getting the following error:
[python] 'The sqlalchemy extension was no..... More

Print this item

  Function with array input
Posted by: Gerkamspiano - Nov-30-2020, 02:03 PM - Forum: General Coding Help - Replies (5)

Hello, I have one (I think easy) question about including arrays as inputs in a function. I need to do a maximization problem of an objective function..... More

Print this item

  Shceduling jobs
Posted by: GrahamL - Nov-30-2020, 12:23 PM - Forum: General Coding Help - Replies (2)

Hi

I need to run some tasks for different periods and to be able to detect when the job has finished.
I have seen a few libraries but wondered whi..... More

Print this item

  pyAudio playing variable
Posted by: Talking2442 - Nov-30-2020, 12:16 PM - Forum: General Coding Help - Replies (3)

Hello Guys,

I want play a variable with pyAudio like with:

[python]
import pyaudio
import math
import struct
import wave
import time
import os

Thre..... More

Print this item

  Tkinter Shell Terminal Or Shell Output
Posted by: sweetthdevil - Nov-30-2020, 09:31 AM - Forum: GUI - Replies (5)

Hello all,

New at using Python here, I have a bash script that I used to automate tasks on my home NAS/Server running Archlinux and I have decided ..... More

Print this item

  making an audiobook using pygame
Posted by: Parshaw - Nov-30-2020, 08:35 AM - Forum: General Coding Help - No Replies

Hello all,
I am trying to make a audiobook project where I am using different libraries. In here I am trying to do:

pdf -> images -> text -> gTTS..... More

Print this item

  Trying to make a bot to connect on discord with Selenium Python
Posted by: johnsmith43 - Nov-30-2020, 07:58 AM - Forum: General Coding Help - Replies (2)

Trying to make a bot to connect on discord with Selenium Python: I've..... More

Print this item

  Find the maximum multiplication
Posted by: ercv - Nov-30-2020, 07:51 AM - Forum: Homework - Replies (3)

So you are given with the list of number, you should choose the three of them which multiplication is the greatest. The problem lies in the fact that ..... More

Print this item

Star NameError – function doesn't recognize imported modules
Posted by: Sir - Nov-30-2020, 06:42 AM - Forum: General Coding Help - Replies (4)

I was trying out using keywords encoded in a string by using exec() and eval() functions.
I got an error.

For this tim..... More

Print this item

  Forum Logo
Posted by: JellyCreeper6 - Nov-30-2020, 04:46 AM - Forum: Board - Replies (4)

The new forum layout and style is pretty well made but the logo seems a bit off. Any plans to perhaps change it?

Print this item

  changing stdout and stderr
Posted by: Skaperen - Nov-30-2020, 03:19 AM - Forum: General Coding Help - Replies (4)

inside a module i want to change where stdout and stderr go to. i had several ideas but nothing worked. i can't find anything about how to do this i..... More

Print this item

  Template Waveform Function does not produce anything after being run
Posted by: amy5678 - Nov-29-2020, 10:38 PM - Forum: Homework - Replies (3)

I have been provided a python code as part of an assignment in which I've to create a waveform template by inputting my own values for the given varia..... More

Print this item

  Auto re-pair / re-sync Controller via Script?
Posted by: User3000 - Nov-29-2020, 09:27 PM - Forum: General Coding Help - Replies (2)

Hi guys, first of all, I have no code to show - I'm sorry.

I want to use the same (PlayStation) Controller on Windows 10 and on the Nvidia Shield 2..... More

Print this item

  Whats wrong with the elif?
Posted by: inunanimous93 - Nov-29-2020, 08:45 PM - Forum: General Coding Help - Replies (3)

>>> x = int(input("Please enter an integer: "))
Please enter an integer: 42
>>> if x < 0:
x = 0
print('Negative changed to zero')


>>> eli..... More

Print this item

  beginner math
Posted by: MarioM - Nov-29-2020, 08:14 PM - Forum: Homework - Replies (13)

I have a problem to solve and my understanding is poor. The answer to my problem is 12 and I answered 9. Can someone explain to me, please
how the ma..... More

Print this item

  Exclude hidden file, filedialog.askopenfile
Posted by: red380sl - Nov-29-2020, 06:47 PM - Forum: GUI - Replies (1)

I started learning Python very recently. It seems to well thought out.

In tkinter I have setup the filedialog to open the home directory on my Linu..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576736
  Tutorial Requ... 499016
  Web Scraping ... 440545
  Newbie with P... 384513
  New Users Int... 368314
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+ 12088
buran 8176
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
victorcrown Yesterday
Markbel386 Yesterday
trntgl Yesterday
susan Yesterday
jatinkumar12 Yesterday

User Panel Messages

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