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,963
» Latest member: chaoh1911
» Forum threads: 38,729
» Forum posts: 175,541

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 31 Guest(s)
Google, Bing, AOL, AOL

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
35 minutes ago
» Replies: 4
» Views: 1,828
My First App
Forum: Code Review
Last Post: carlbidwell
8 hours ago
» Replies: 8
» Views: 8,430
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Today, 03:54 AM
» Replies: 3
» Views: 328
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Yesterday, 05:13 PM
» Replies: 4
» Views: 763
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:17 PM
» Replies: 1
» Views: 830
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:14 PM
» Replies: 6
» Views: 5,081
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Yesterday, 09:50 AM
» Replies: 1
» Views: 1,718
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Yesterday, 03:53 AM
» Replies: 1
» Views: 2,757
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:32 AM
» Replies: 0
» Views: 361
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 615

 
  Help with simplifying a code + np.savetxt()
Posted by: Laplace12 - Jul-14-2020, 08:47 AM - Forum: Data Science - Replies (3)

Hey! I need help simplifying a code. I have a code which plots given data, so you'd only have to create a new data file and the basic Function code it..... More

Print this item

  [Help] Pressure-Time Dataset reduction - without loosing information
Posted by: Rene_AC - Jul-14-2020, 08:29 AM - Forum: Data Science - No Replies

Hello everyone.

I have some issue with my data, or with the needed simulation based on the obtained data.

I record data and get data from severa..... More

Print this item

  shutil.copy questions
Posted by: kristianpython - Jul-14-2020, 07:51 AM - Forum: General Coding Help - Replies (3)

Hi,

I want to run a script that uses the shutil module to copy the last added file. I can use the code below to copy a file, but how would I go ab..... More

Print this item

  First Functioning Calculator
Posted by: wxcoding - Jul-14-2020, 05:27 AM - Forum: Code Review - Replies (3)

Hello,

So to practice functionality, I wrote out a calculator to determine the distance between two cities using the haversine formula. User inputs..... More

Print this item

  Practical Machine Learning
Posted by: ErnestTBass - Jul-14-2020, 03:39 AM - Forum: News and Discussions - Replies (1)

I have been working on machine learning either part time or full time for the last year and a half.[size=large]

But what i am m..... More

Print this item

  Reading integers from a file; the problem may be the newline characters
Posted by: JRWoodwardMSW - Jul-14-2020, 12:03 AM - Forum: General Coding Help - Replies (2)

I want to read integers from a file. The delimiter is " " (a space).
I am getting the list of strings read into the program, but the error message i..... More

Print this item

  Going thru tutorials..."NameError: name 'raw_input' is not defined"
Posted by: hmonnier - Jul-13-2020, 09:33 PM - Forum: General Coding Help - Replies (4)

I'm a total newbie, wrote machine code for years at GE, Digital Communications stuff. Off to try to learn Python.
In going thru the tutorials in one ..... More

Print this item

  Creating a Scrolling (infinite) Background
Posted by: Knight18 - Jul-13-2020, 05:38 PM - Forum: Tutorial Requests and Submissions - Replies (1)

I've been dabbling in Pygame for over a month now and I've discovered many things. I've created two games so far + 2 more in development. I intend to ..... More

Print this item

  delete a file works but with error
Posted by: Leon79 - Jul-13-2020, 05:11 PM - Forum: General Coding Help - Replies (4)

Hello,

I get an error from my code, I create the path in order to delete the correct file (I have import os of course), even if my code delete the ..... More

Print this item

  model interpretation for automated theorem proving with Z3
Posted by: vdbrueck - Jul-13-2020, 05:10 PM - Forum: Data Science - No Replies

Hi, does someone know how the model output of Z3 automated theorem prover from Microsoft is interpreted?
The model output (s.model()) contains the f..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 35 minutes ago arbiel Gribouillis General Codin...
  My First App 8 hours ago BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Today, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... Yesterday, 17:13 RonR noisefloor GUI
  Is the interpreter that c... Yesterday, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... Yesterday, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... Yesterday, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... Yesterday, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Yesterday, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
Most views
  The best Prog... 577125
  Tutorial Requ... 500039
  Web Scraping ... 440843
  Newbie with P... 384836
  New Users Int... 369075
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 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
chaoh1911 Today
KaydenJonah098 Today
carlbidwell Today
llarkin6 Yesterday
Xuitar Yesterday

User Panel Messages

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