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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 33 online users.
» 1 Member(s) | 29 Guest(s)
Bing, Google, Mojeek, snippsat

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 97
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 66
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 63
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 316
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 75
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 269
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 144
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 240
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 424

 
  pygame music doesn't work
Posted by: CompleteNewb - Dec-25-2020, 11:59 PM - Forum: General Coding Help - Replies (1)

hello

I'm going through the book 'making games with pygames', but I can't make python play music. The sound works fine but not the music

Here's ..... More

Print this item

  tic-tac-toe Code
Posted by: PyMahan - Dec-25-2020, 09:10 PM - Forum: Code sharing - No Replies

Hello,
im mahan a trainy python programmer and this is my first post!
my tic-tac-toe project is not complete but I will complete it soon.
just wan..... More

Print this item

  Subtracting Elements of a Sublist in Python 3
Posted by: pangloss3030 - Dec-25-2020, 08:51 PM - Forum: Homework - Replies (3)

Hello,

I am having an issue with subtracting sublists. With the given sublist:

first_list: [[0, 1], [2,4], [8,7]]

There is supposed to be a n..... More

Print this item

  Hacking With Python -NEW SERIES
Posted by: Spyros_dev - Dec-25-2020, 06:18 PM - Forum: Tutorial Requests and Submissions - No Replies

Hello everybody!

I am starting a new series about hacking with python.
This is the first video that i teach how to make a port scanner: https://ww..... More

Print this item

  Multi-line console input
Posted by: lizze - Dec-25-2020, 06:07 PM - Forum: General Coding Help - Replies (4)

Trying to read multi-line console input with my program. But as of know I need to press enter twice before the actual reading begins? Does anyone unde..... More

Print this item

  binary integer confusion
Posted by: Moris526 - Dec-25-2020, 05:56 PM - Forum: General Coding Help - Replies (10)

Hi all.

Im receving a number through serial.

b'34\n'
I do this to remove the end of line

[python]data=data.rstrip()[/pyth..... More

Print this item

  Changing the BG-color of the table
Posted by: Pattaya - Dec-25-2020, 05:45 PM - Forum: Code sharing - Replies (1)

Hello,
who can help me with a line of code, where to change the background color of table 2(which is in white)
to anything else, for example "blue"

[..... More

Print this item

Smile PROJECTILE WITH TURTLE
Posted by: artnote1337 - Dec-25-2020, 05:15 PM - Forum: General Coding Help - Replies (2)

Hello. The idea here was to shot a projectile til the end of the screen. What actually happens is that the function is just printing it at the end of ..... More

Print this item

  given a window handle, draw a red box around the border, and remove it later
Posted by: raymond0517 - Dec-25-2020, 01:04 PM - Forum: Homework - No Replies

Hi ,
I am using python code to perform a function.
Specifically, the UiPath will call this python function,
and pass it a window handle,
this func..... More

Print this item

  cant access root environment folder from django folder using __init__.py
Posted by: Sanjish - Dec-25-2020, 05:54 AM - Forum: Web Scraping & Web Development - No Replies

Hi,
I have a Python - Django project with the following DIRECTORY structure

PYTHON-MSACCESS_PROJECT>MYTESTENVIRONMENT>DJANGOEXAMPLE>DJANGO..... More

Print this item

  Popen() but .wait() not called
Posted by: Skaperen - Dec-25-2020, 01:40 AM - Forum: News and Discussions - No Replies

what is supposed to happen if Popen() is called to launch a process but the .wait() method is never called?

Print this item

  csv.reader(): Limit the number of columns read in Windows
Posted by: Pedroski55 - Dec-24-2020, 11:56 PM - Forum: General Coding Help - Replies (9)

I don't use Windows, but I am trying to show someone how to read and write .csv files

In Ubuntu, when I do this:

[python]import csv
file1 = '/home/p..... More

Print this item

  Process halting
Posted by: JarredAwesome - Dec-24-2020, 11:46 PM - Forum: General Coding Help - No Replies

Hey Everyone,

I am writing a program that checks various sensors in the background, and controls hardware accordingly.

I wrote the program to us..... More

Print this item

  "'DataFrame' objects are mutable, thus they cannot be hashed"
Posted by: Mark17 - Dec-24-2020, 08:41 PM - Forum: General Coding Help - Replies (1)

I've been having trouble in a few instances with what I think is the same core issue--I just can't identify exactly what it is.

[Python]
markets =..... More

Print this item

  Voice packs for Linux espeak
Posted by: gr3yali3n - Dec-24-2020, 07:42 PM - Forum: General Coding Help - No Replies

I am fiddling with a project that uses espeak and I’ve started using Linux more than Mac lately,
My question is there any way to get voices that are ..... More

Print this item

  Variable scope - "global x" didn't work...
Posted by: ptrivino - Dec-24-2020, 07:17 PM - Forum: General Coding Help - Replies (5)

I am struggling to understand updating a 'global' dictionary (i.e., it's defined in the main module and I want to update it in a subroutine). I unders..... More

Print this item

  Security system to protect my family from burglars
Posted by: kronk - Dec-24-2020, 03:19 PM - Forum: Bar - No Replies

I work a lot. Usually, I have 4-5 business trips a month. So, when I am out, my wife and our little baby are at home. Honestly, we live not in a safe ..... More

Print this item

  How to use Bunch data structure
Posted by: moish - Dec-24-2020, 02:45 PM - Forum: General Coding Help - Replies (2)

Hi All,
I'm trying to use Bunch data structure, and fail to find what import is needed in order to use it
I'm using Python 3.8
A complete working e..... More

Print this item

  Available for hire: Remote team
Posted by: sandeep_canopus - Dec-24-2020, 12:24 PM - Forum: Jobs - Replies (1)

Hi, everyone, Wishing you all Wonderful Holidays & Cheers to a Brighter 2021🎉

We are a team of Data engineers and data Scientists and specialize in c..... More

Print this item

  Available for hire: Remote team
Posted by: sandeep_canopus - Dec-24-2020, 12:18 PM - Forum: Jobs - No Replies

Hi, everyone, Wishing you all Wonderful Holidays & Cheers to a Brighter 2021🎉

We are a team of Data Scientist and specialize in cognitive technolog..... More

Print this item

  How do I add another loop to my nested loop
Posted by: greenpine - Dec-24-2020, 11:34 AM - Forum: General Coding Help - Replies (11)

I have a working Python program (nested loop).
When the file runs:

1- Starts from first CSV file, reads first row (within a given range, e.g. 2 rows..... More

Print this item

  4D array with only elements on one side of the diagonal
Posted by: schniefen - Dec-24-2020, 11:30 AM - Forum: General Coding Help - No Replies

Given the parameters n and m, I'd like to initialize a n x n4D array where each entry is an [inline..... More

Print this item

  pandas change value two dataframe
Posted by: nio74maz - Dec-24-2020, 10:08 AM - Forum: General Coding Help - Replies (4)

good morning i'm trying to find the differences between two dataframes the promo 'df1' has only one column which is 'codbar, where the equivalent in' ..... More

Print this item

  solve probability problem by python
Posted by: Dreammer - Dec-24-2020, 08:40 AM - Forum: Homework - Replies (1)

A = {1, 2, 3, 4, 5}

There is bijective function f from A to A. The function satisfying following condition.


for only one n, element of dom..... More

Print this item

  Slice list
Posted by: Moris526 - Dec-24-2020, 01:43 AM - Forum: General Coding Help - Replies (1)

Hi

Im receving through serial a number from 0 to 511 and a letter like:

1 A
432 B
23 C

and I need to asign them to different variables. I t..... More

Print this item

  List / arrays putting in sentence
Posted by: Kurta - Dec-24-2020, 01:03 AM - Forum: General Coding Help - Replies (3)

I’m trying to pull from a index and a variable and use in a sentence what’s am I doing wrong

[python]
bicycles = ['trek','cannondale','shwin','spe..... More

Print this item

  How to preserve x-axis labels despite deleted subplot?
Posted by: Mark17 - Dec-23-2020, 06:58 PM - Forum: General Coding Help - Replies (1)

[Python]
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 23 11:59:48 2020

@author: drkle
"""
import matplotlib.pyplot as plt
import collection..... More

Print this item

  Recruiting for a Server Software Engineer
Posted by: ader01 - Dec-23-2020, 06:26 PM - Forum: Jobs - Replies (1)

Hello there,

I'm currently recruiting for a Server Engineer in London, to work on one of our projects.

You will need:
- 3+ years’ experience of..... More

Print this item

  How to escape OrderedDict as an argument?
Posted by: Mark17 - Dec-23-2020, 06:22 PM - Forum: General Coding Help - Replies (2)

Here's some code:
[Python]
import matplotlib.pyplot as plt
import collections

markets = ['ES', 'GC', 'CL', 'EC', 'US']

axL_index = collection..... More

Print this item

  Matrix indexing and initialization in " for in" loop
Posted by: QuintenR - Dec-23-2020, 04:26 PM - Forum: General Coding Help - Replies (2)

Hi all, in order to make a MATLAB script more generally available, I'm rewriting it in Python.
Google couldn't provide me with conclusive answers, th..... More

Print this item

  How can I begin learning networking?
Posted by: rohit19 - Dec-23-2020, 10:17 AM - Forum: Networking - Replies (5)

So I recently stopped learning to code because that was just too much for me. I was told networking also doesn't require a college degree but will req..... More

Print this item

  [split] How to convert the CSV text file into a txt file
Posted by: Pinto94 - Dec-23-2020, 06:32 AM - Forum: General Coding Help - Replies (5)

Hello there.
Does anyone know how to convert the CSV text file into a txt file? Because I have 2000++ instances(number of rows) in my dataset so I wa..... More

Print this item

  How to export from Python to Excel?
Posted by: jpy - Dec-23-2020, 04:46 AM - Forum: General Coding Help - Replies (4)

Hi everyone, I found the example below online that creates an excel file for you. I am currently working with a workbook in Python (using read_excel f..... More

Print this item

Photo How do I scrape a web page?
Posted by: oradba4u - Dec-23-2020, 04:46 AM - Forum: Web Scraping & Web Development - Replies (2)

All:
I want to scrape this web-page using Python, but specifically I want to retrieve the data that I've indicated below:
Here's the webpage:
http..... More

Print this item

  PAGE Anyone?
Posted by: oradba4u - Dec-23-2020, 03:34 AM - Forum: News and Discussions - Replies (6)

All:
Does anyone know of a website that supports The Python GUI Development Environment called "Page"?

Also, What is the GUI Designer of choice for P..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579007
  Tutorial Requ... 510801
  Web Scraping ... 442022
  Newbie with P... 386057
  New Users Int... 377406
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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