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,279
» Latest member: Santoro
» Forum threads: 38,791
» Forum posts: 175,868

Full Statistics

Online Users
There are currently 48 online users.
» 2 Member(s) | 43 Guest(s)
Bing, Google, AOL, mamta25, bowlofred

Latest Threads
How Can Solo Indie Game D...
Forum: Game Development
Last Post: OtiliaBecker
2 hours ago
» Replies: 0
» Views: 15
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 89
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 31
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:59 AM
» Replies: 11
» Views: 5,982
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,282
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 295
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 141
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 207
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,111
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 254

 
  Create array from string
Posted by: steve87bg - Jul-13-2020, 04:26 PM - Forum: General Coding Help - Replies (4)

Hi,

I need to create an array from string.
Array should have two digit consistent fragments.
For example if
s="10886"
I should have [10, 8, ..... More

Print this item

  configparser module, when use text file to show following error
Posted by: mbilalshafiq - Jul-13-2020, 04:12 PM - Forum: Homework - Replies (5)

[python]
import configparser

config = configparser.ConfigParser()
#config.read("E:\\My Folders\\Alnafi\\AlNafi\\configparser_Ex3.ini") # when we ..... More

Print this item

  pushbutton with image
Posted by: issac_n - Jul-13-2020, 03:34 PM - Forum: GUI - Replies (1)

hi all,

is there possible to make Qpushbutton with logo/pic like below?
https://ibb.co/k2fRLFn

Print this item

  SyntaxError: unexpected character after line continuation character
Posted by: siteshkumar - Jul-13-2020, 03:21 PM - Forum: General Coding Help - Replies (2)

Hi!
I want to run the under mentioned code:

import csv

%precision 2

with open(C\Users\LENOVO\Documents\'mpg.csv') as csvfile:
mpg = lis..... More

Print this item

  Saving Files
Posted by: Kristenl2784 - Jul-13-2020, 03:19 PM - Forum: General Coding Help - Replies (3)

Hello,

Right now when this script saves a file it uses the summaryFile variable 'Report_v1_' and then adds the first schedule name 'Nm' to the end ..... More

Print this item

  Install libraries in Google Coral TPU
Posted by: hobbyist - Jul-13-2020, 01:47 PM - Forum: General Coding Help - Replies (1)

Hello,

I try to install the following libraries without success on Google Coral TPU. These libraries I want to cooperate with tensorflow lite:

[..... More

Print this item

  Multiprocessing share variable
Posted by: catosp - Jul-13-2020, 11:55 AM - Forum: General Coding Help - No Replies

Hello!

I have the following problem :

Main.py:

[python]
import multiprocessing
import FilePlot
x = []
y = []

while True:
word = input..... More

Print this item

  Multi-gaussian function
Posted by: Laplace12 - Jul-13-2020, 10:40 AM - Forum: General Coding Help - Replies (5)

Hey! I need help developing a code for a multi-gaussian function. The point would be to create a function that uses the number of gaussian requested b..... More

Print this item

  OpenCV simple showimage command takes 70ms on RPI4
Posted by: Markovicz - Jul-13-2020, 09:52 AM - Forum: General Coding Help - No Replies

Dear Python and OpenCV-Fellows,

I am using openCV on a RPI4 - 4GB and I'm doing realtime person detection with it so frame rate is quite crucial. M..... More

Print this item

  name 'temperatures' not defined?
Posted by: johnhall83 - Jul-13-2020, 09:31 AM - Forum: General Coding Help - Replies (3)

I get an error saying, print('The input list is:', temperatures)
NameError: name 'temperatures' is not defined

This is my code:

[python]..... More

Print this item

  reading from a file
Posted by: looseCannon101 - Jul-13-2020, 09:10 AM - Forum: Homework - Replies (14)

hi im currently working on a small project to make a bill bored chart and its on and we have to read the artists from a "csv" file we cannot use "impo..... More

Print this item

  your expert opinions on my matches game
Posted by: delcencen - Jul-13-2020, 08:26 AM - Forum: Code Review - No Replies

[python]
# matchesGame v3 run on Python 3.7(jeu des allumettes).
# This is my first program, I am making it public for those who want
# to improve ..... More

Print this item

  Telegram bot - Problem with database
Posted by: NoNameoN - Jul-13-2020, 06:21 AM - Forum: General Coding Help - Replies (1)

Hi everybody when i do...
[python]
cursor.execute('UPDATE Utenti SET Api_Key = ? WHERE Id = ?;', (Api_Key, chat_id))
cursor.execute('SELECT * FROM ..... More

Print this item

  Need help creating a simple script
Posted by: Nonameface - Jul-13-2020, 04:22 AM - Forum: General Coding Help - Replies (12)

Ok so im using python idle, version 3.7.8, and im a complete noob literally just started. I want to create a simple script to close/kill and open a ap..... More

Print this item

  Return boolean from recursive class method
Posted by: medatib531 - Jul-13-2020, 04:08 AM - Forum: General Coding Help - Replies (6)

I have the following class which stores bit strings in a tree structure. The exists() method should return if the queried string is matched in the tre..... More

Print this item

  Get the last entry in my text widget
Posted by: Pedroski55 - Jul-13-2020, 04:05 AM - Forum: GUI - Replies (3)

I want to get the last entry in my text widget.

This writes an entry to the text widget (thanks to Menator01):

[python]def printit(text):
..... More

Print this item

  Optimizing Or Better Python COde
Posted by: samlee916 - Jul-13-2020, 03:53 AM - Forum: Web Scraping & Web Development - Replies (1)

Any ideas/tips on how to better optimize this code or better and cleaner than it is?
[python]
import requests
import argparse
from urllib.request ..... More

Print this item

  Unable to import statsmodel
Posted by: Salahaddin - Jul-12-2020, 08:51 PM - Forum: Data Science - Replies (1)

Dear All,

I am new to python. I would like to replicate some code. The preamble starts as follows:

[python]import numpy as np
from numpy impor..... More

Print this item

  package installing problem
Posted by: CatherineKan - Jul-12-2020, 07:53 PM - Forum: News and Discussions - Replies (5)

I want install a package called FFEA, this is their website: https://ffea.readthedocs.io/en/stable/in...equisitesU
I downloaded the progr..... More

Print this item

  Is it necessary to pass value of 'self' ?
Posted by: rpk2006 - Jul-12-2020, 07:45 PM - Forum: General Coding Help - Replies (6)

I am using VSCode for Python programming.

I have two files:
(1) pyMain
(2) pyTests

With this program I am learning to write unit tests using p..... More

Print this item

  Invalid syntax on print function
Posted by: DoctorSmiles - Jul-12-2020, 07:27 PM - Forum: General Coding Help - Replies (2)

Hey guys,

I am trying this code out for an assignment and keep getting "SyntaxError: invalid syntax" on the print function.
[python]
def f(x):
..... More

Print this item

  Access Forbidden
Posted by: Niv_Neos - Jul-12-2020, 06:39 PM - Forum: General Coding Help - Replies (2)

Hello Python community,

We have been using the leading programming language for artificial intelligence, data science and entrepreneurship.

Unf..... More

Print this item

  Multiprocessing, class, run and a Queue Object
Posted by: SeanInColo - Jul-12-2020, 05:36 PM - Forum: General Coding Help - No Replies

Using multiprocessing and having difficulty understanding the syntax to use within a class. The premise is that there is a producer process who liste..... More

Print this item

  Natural Language Generation
Posted by: sridhar - Jul-12-2020, 04:13 PM - Forum: Data Science - Replies (2)

Hi all,

I'm not getting any resources for NLG. It helps if anyone provide me a resource where I can explore and play around in NLG.

Than..... More

Print this item

  Assignment of non-existing class variable is accepted - Why?
Posted by: DrZ - Jul-12-2020, 03:48 PM - Forum: General Coding Help - Replies (6)

Hi, I am a newbie. My understanding is that I cannot assign to a non-existing class variable, but the python interpreter (3.8.3) allows this to occur...... More

Print this item

  Collect lines in a file
Posted by: sridhar - Jul-12-2020, 02:23 PM - Forum: General Coding Help - Replies (3)

Hi all,
If a line doesn't start with a timestamp , i need to add it with previous line through list.
this is the content of my file
[b]9/16/16, 01..... More

Print this item

  Checking if an element belongs in a dataframe row
Posted by: palladium - Jul-12-2020, 02:06 PM - Forum: Data Science - No Replies

I'm trying to search if a dataframe contains a specified number for each row. The problem is: A user enters an audiogram, which is converted to a Data..... More

Print this item

  copy content of text file with three delimiter into excel sheet
Posted by: vinaykumar - Jul-12-2020, 01:26 PM - Forum: General Coding Help - No Replies

I have a text file n numbers of rows and columns separated by three delimiters [ , ], - .
I need to import this into excel using python.

sample da..... More

Print this item

  Summing a list of numbers
Posted by: Oldman45 - Jul-12-2020, 01:10 PM - Forum: General Coding Help - Replies (6)

I am teaching myself Python and following a YouTube tutorial I input the following:

[python]xs = [12, 14, 10]

for num in xs:
x += num

pr..... More

Print this item

  xml.etree.ElementTree extract string values
Posted by: matthias100 - Jul-12-2020, 12:47 PM - Forum: General Coding Help - Replies (2)

Hi all,
I'am new to python. I am trying to parse an xml file and extract values between "><". Here the xml example :

[python]
<?xml version="1.0"..... More

Print this item

  form select option tags, add "selected" on <option> in python at a condition
Posted by: Leon79 - Jul-12-2020, 12:32 PM - Forum: Homework - Replies (3)

Hello Coders,

I'm still working on my project for the course, and I'm not giving up, even if everything looks to slow me down!

I'm at the point wher..... More

Print this item

  Python Automated Email
Posted by: aidanh26 - Jul-12-2020, 12:25 PM - Forum: Networking - Replies (10)

Hi,
I'm a newbie here. I'm looking for help to automatically send an email to an address assoicated with a string found in an excel spreadsheet.
..... More

Print this item

  PIL Python
Posted by: ABVSVL - Jul-12-2020, 11:37 AM - Forum: General Coding Help - Replies (2)

There are two files. one file has a color depth of 24 second 32 bits.
The PIL library gives an error.
How to convert 32 bits to 24?
What are the me..... More

Print this item

  beginner question
Posted by: ___ - Jul-12-2020, 07:55 AM - Forum: General Coding Help - Replies (1)

hi, i'm quite new to python. I was wondering how I can add like a time sync? or something like that? I want to make a program to remind me of somethin..... More

Print this item

  IEDriverServer screenshot
Posted by: ABVSVL - Jul-12-2020, 07:08 AM - Forum: General Coding Help - No Replies

Hi.
How can I do screenshot from IEDriverServer ?
I have code


from selenium import webdriver


browser = webdr..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Can Solo Indie Game D... 2 hours ago OtiliaBecker OtiliaBecker Game Developm...
  [SOLVED] [BeautifulSoup] ... Yesterday, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Yesterday, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Yesterday, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Yesterday, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
Most views
  The best Prog... 579184
  Tutorial Requ... 511878
  Web Scraping ... 442138
  Newbie with P... 386216
  New Users Int... 379102
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Santoro Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday
eastnoob 11-19

User Panel Messages

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