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,296
» Latest member: nicos18
» Forum threads: 38,795
» Forum posts: 175,886

Full Statistics

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

Latest Threads
My regex function is not ...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 50
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:51 AM
» Replies: 1
» Views: 55
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 230
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 121
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 81
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,518
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 170
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 80
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,137
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,320

 
  Optimize the - Split brain detection script
Posted by: 0gg1 - Oct-08-2019, 08:22 AM - Forum: Code sharing - Replies (2)

Hello,
I'm not that good on Python, so I have a question about optimizing my code.
Here is the code. It's written in Python 3.6

[python]
#!/usr/..... More

Print this item

  pyinstaller not working with acoustics module
Posted by: pynz - Oct-08-2019, 06:51 AM - Forum: General Coding Help - Replies (2)

Hi
On Windows 10, the following code in iec_61672_1_2013.py from the acoustics module:
[python]
WEIGHTING_DATA = pd.read_csv(
io.BytesIO(pkgut..... More

Print this item

  Manipulating List
Posted by: frenchyinspace - Oct-08-2019, 06:07 AM - Forum: Homework - Replies (2)

I'm midway through my first semester of computer science. I've been staying as far ahead of the homework as possible because I find it fun and challen..... More

Print this item

  Multiplication between a list and a variable
Posted by: doug2019 - Oct-08-2019, 03:50 AM - Forum: General Coding Help - Replies (2)

How do I code a multiplication between a list and a variable? The result would be all the values of the list multiplied by the variable. Is it possibl..... More

Print this item

  Progress
Posted by: allusernametaken - Oct-08-2019, 03:36 AM - Forum: Bar - Replies (2)

I have been making a good progress on learning Python. It has been about two weeks since I started and almost everyday I learned a bit of Python basi..... More

Print this item

  Creating Vector from a Program
Posted by: ericvrocha - Oct-08-2019, 02:48 AM - Forum: General Coding Help - Replies (3)

Hello everyone.
I am a new programmer.
I am trying to create a vector called "pressure", below is an example for the calculations that I have been t..... More

Print this item

  i need a more complex regexp
Posted by: Skaperen - Oct-08-2019, 01:54 AM - Forum: News and Discussions - Replies (4)

i need a more complex regular expression i hope to use with module re. in this expression i need to match 2 (and in 2 more variation, 3 and 4) arithm..... More

Print this item

  No idea how to use the Caesar Cypher in my code
Posted by: celtickodiak - Oct-08-2019, 12:29 AM - Forum: Homework - Replies (5)

So in our homework assignment, most of the code is given to us, and we have to write a few lines. Initially it asks for us to look at the passwords li..... More

Print this item

  Dictionary trouble
Posted by: Involute - Oct-08-2019, 12:01 AM - Forum: General Coding Help - Replies (3)

In the following code (which is executable as-is), I've created a dictionary called switcherx{} in the switcher() function. This function also calls ..... More

Print this item

  Voynich search engine in python using dashes & dot totals to find Italian words
Posted by: Pleiades - Oct-07-2019, 11:27 PM - Forum: General Coding Help - Replies (3)

What I'm doing? I'm generating word labels in Italian and narratives from the Voynich Manuscript using a special cipher. The cipher contains abstrac..... More

Print this item

  Pyautogui script runs fine if split into two parts together it does not
Posted by: Bmart6969 - Oct-07-2019, 09:10 PM - Forum: General Coding Help - Replies (1)

Making a small bot to automate daily activities in a game the script runs fine and fully gets into the game. i Made another script to check resource l..... More

Print this item

  Web Scraping Error : Not getting expected result
Posted by: adminravi - Oct-07-2019, 08:36 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I am a beginner in Python programming. Of late, I have started learning web scraping after completing python programming course from Udemy. I w..... More

Print this item

  coloring cells in a row with openpyxl
Posted by: curranjohn46 - Oct-07-2019, 08:09 PM - Forum: General Coding Help - Replies (3)

Hi All,

I am struggling with something and looking everywhere for a clue. The scenario is this: I am searching column 2 of a spreadsheet for a val..... More

Print this item

  New Programmer / Program
Posted by: ericvrocha - Oct-07-2019, 07:59 PM - Forum: General Coding Help - Replies (5)

Hello everyone!
Hope everybody is having a great day.

Well, I am a new programmer and python user, I am trying to apply my knowledge that I got so..... More

Print this item

  A function for correctly using "a/an" before a word
Posted by: Exsul1 - Oct-07-2019, 05:51 PM - Forum: General Coding Help - Replies (2)

I want to make a function that, when passed a string containing a single word, returns that word preceded by the indefinite article "a" or "an," depen..... More

Print this item

  out and back to loop
Posted by: vlk - Oct-07-2019, 05:36 PM - Forum: General Coding Help - Replies (2)

Hi everyone, I don't understand how out from a loop while. I have a test loop ho test the contacts GPIO from my raspberry then the contact go to close..... More

Print this item

  Invalid Syntax error
Posted by: mustfirst - Oct-07-2019, 05:21 PM - Forum: General Coding Help - Replies (9)

When I run the following I'm getting an error message. Anyone knows how to correct it?


[python]>>> import requests
>>> from bs4 import Beautifu..... More

Print this item

  split strip issues 'NonType'
Posted by: casacafe - Oct-07-2019, 04:47 PM - Forum: General Coding Help - Replies (8)

hello,

I am extremely new to python so bare with me. I am using a product that requires the use of python for custom functionality.

I have an ..... More

Print this item

  New to Python - What are the basic concepts, uses, and fundamentals?
Posted by: JohnWithGCSRecruitment - Oct-07-2019, 04:29 PM - Forum: News and Discussions - Replies (4)

I am trying to get a general understanding of Python. Can anyone give me a crash course of the basics? Not necessarily the specifics, but mainly the c..... More

Print this item

  Dataframe replace
Posted by: ilcaa72 - Oct-07-2019, 03:19 PM - Forum: Data Science - No Replies

i have a dataframe that has rows like. i want to get rid of various markings like =, |, ()

i wrote this but it returns the same value without remov..... More

Print this item

  Embedding return in a print statement
Posted by: Tapster - Oct-07-2019, 01:59 PM - Forum: General Coding Help - Replies (3)

First, I hope I used the format/rules correctly.
I did a search for "embedding return in a print statement" before posting. I don't have the terminol..... More

Print this item

  drop row index , how to show new df
Posted by: ilcaa72 - Oct-07-2019, 01:40 PM - Forum: General Coding Help - No Replies

hi, i have data i downloaded from the internet so it is not in a structured table, there are rows i want to delete. using a regex, i am able to identi..... More

Print this item

  Grab and Parse a chunkc of text
Posted by: sumncguy - Oct-07-2019, 01:08 PM - Forum: General Coding Help - Replies (4)

I mentioned a few times before that I am trying to learn/get better at python.

I am unable to load non standard modules.
I am using either pytho..... More

Print this item

  How to add data to the categorical index of dataframe as data arrives?
Posted by: AlekseyPython - Oct-07-2019, 12:54 PM - Forum: Data Science - Replies (1)

Python 3.7.3, pandas 0.25.1

I need to collect statistics within the clients, so I created a df in which for each client I group the necessary..... More

Print this item

  How to use while true/while loop on python
Posted by: christing - Oct-07-2019, 10:11 AM - Forum: General Coding Help - Replies (4)

May i ask how i can use while true / while loop to write the code.

i = "APPLE"
while True:
if i == "APPLE":
print(i)


i get Syntax Error fo..... More

Print this item

  performance
Posted by: kerzol81 - Oct-07-2019, 09:27 AM - Forum: General Coding Help - Replies (1)

Hi,

Do you know any good diagnostic tool to compare 2 implementations?

First:
[python]
def converterA(qdate, qtime):
"""
:param qdat..... More

Print this item

  list approach due nested order
Posted by: 3Pinter - Oct-07-2019, 08:44 AM - Forum: General Coding Help - Replies (6)

Horrible thread name, but let me try and explain it.

I put lists (with 2 (always) values) in a main-list and I want to cleanup the duplicates in th..... More

Print this item

  Explain - binary number
Posted by: RavCOder - Oct-07-2019, 08:32 AM - Forum: General Coding Help - Replies (2)

Hi,
I ask if there is someone could be explain this code that I found and why it was used this solution,because I didn't find nothing on Internet , o..... More

Print this item

  Add a column in a dataframe from another dataframe
Posted by: Bilsix - Oct-07-2019, 07:15 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm a newbie in Python and I need your help.
I tried to search my answer in the forum but I think I don't have the good keywords... It's..... More

Print this item

  A hangman game.
Posted by: mcmxl22 - Oct-07-2019, 06:53 AM - Forum: Code sharing - Replies (1)

A hangman type game I wrote. It's fully functional but I'm still trying to improve on it.
It does require a list of words in a .txt file. I used [url=..... More

Print this item

  Replace Items in List.
Posted by: mcmxl22 - Oct-07-2019, 04:27 AM - Forum: General Coding Help - Replies (3)

I am trying to replace items in a list based on the index. I don't understand why I'm getting the 'index out of range' error.
This is what I have:
[..... More

Print this item

  VS-Code - Maximizing Horizontal Space For Editor
Posted by: adt - Oct-07-2019, 04:09 AM - Forum: News and Discussions - Replies (8)

Even when VS-Code editor is in Zen mode, there are wide blank columns on either side of screen that are not available as part of coding area.

Has a..... More

Print this item

  How to read a text file into a list or an array
Posted by: musouka - Oct-07-2019, 02:59 AM - Forum: General Coding Help - Replies (2)

Hi,

I have 2 txt files as following:
1st - '[4,6,3,5]'
2nd - '[3,6],[6,2,7]'

I wonder if there is anyway to read it into a list or an array ..... More

Print this item

  can't assign to literal error in pycharm
Posted by: ryder5227 - Oct-07-2019, 02:16 AM - Forum: General Coding Help - Replies (2)

[python]class Flee(Action):
def __init__(self, method: object, name: object, hotkey: object, kwargs: object) -> object:
"""

:..... More

Print this item

  Sprite on mouse-button hold
Posted by: Clunk_Head - Oct-07-2019, 02:12 AM - Forum: Game Development - Replies (3)

I'm working with pygame 1.9.6
I am trying to make a program that displays a translucent sprite only when the left mouse-button is held down.
This s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My regex function is not ... 1 hour ago Moltar1997 Pedroski55 General Codin...
  silent deployment Python ... Yesterday, 11:51 Bummibaer Larz60+ News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
Most views
  The best Prog... 579348
  Tutorial Requ... 512288
  Web Scraping ... 442232
  Newbie with P... 386326
  New Users Int... 380121
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday
LewisByday Yesterday
Bummibaer Yesterday

User Panel Messages

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