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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 53 online users.
» 0 Member(s) | 51 Guest(s)
Bing, Google

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 126
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
6 hours ago
» Replies: 4
» Views: 135
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
9 hours ago
» Replies: 2
» Views: 107
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 152
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 343
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 62
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 103
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 348
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 193
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 300

 
  How to answer subprocess prompt
Posted by: Monty - Feb-11-2018, 09:49 PM - Forum: General Coding Help - Replies (8)

When I run: python3.5 script.py
Which has:
process = Popen(['command args more args'], stdin=PIPE, stdout=PIPE, shell=True)
The command will prompt..... More

Print this item

  Function Import help
Posted by: Codeforfood - Feb-11-2018, 09:47 PM - Forum: Homework - Replies (2)

I am writing a code for homework, this isn't my code but the error is very similar:
[python]
import random

def main():
random()
print(t..... More

Print this item

  Is this a normal/benign make test error when building python3.6
Posted by: sofuego - Feb-11-2018, 09:45 PM - Forum: General Coding Help - Replies (2)

I've been trying to get a more up-to-date version of python running in a docker environment for ubuntu16.04. Each time I test the compilation there ar..... More

Print this item

  Translator
Posted by: Zatoichi - Feb-11-2018, 09:13 PM - Forum: Homework - Replies (13)

[python]
def load_dictionary(filename):

dictionary = {}
with open('Hmong.txt', 'r') as input_file:
for lines in input_file:..... More

Print this item

  Seeking feedback on my script-in-progress
Posted by: league55 - Feb-11-2018, 06:16 PM - Forum: General Coding Help - Replies (2)

My script repo

Print this item

  dictionary from file
Posted by: Zatoichi - Feb-11-2018, 05:56 PM - Forum: Homework - Replies (5)

[python]
input_file = open('dictionaryHmong.txt')
dictionary = {}
for lines in input_file:
information = lines.split(',')
dictionary[line..... More

Print this item

  Getting attribute and changing it through method
Posted by: nadav - Feb-11-2018, 04:50 PM - Forum: General Coding Help - Replies (5)

Hi, i have class with few getters
Lets say that one of getters return value which is also object of another class
Something like that:

class Mask..... More

Print this item

  Best way to have most of my code outside of a giant for loop
Posted by: danw32 - Feb-11-2018, 04:48 PM - Forum: Web Scraping & Web Development - Replies (6)

Hi there, I'm trying to refactor my code as at the moment it is far too clunky for what I am trying to achieve. I read in a line at a time of an excel..... More

Print this item

  API Google Speech
Posted by: kowalskilinux - Feb-11-2018, 04:47 PM - Forum: General Coding Help - No Replies

Hello good afternoon.

I'm not a python developer, I'm validating the google speech API in my lab, I want some help.

I've already done the proced..... More

Print this item

  Return string from Javascript
Posted by: ian - Feb-11-2018, 04:41 PM - Forum: General Coding Help - No Replies

I need to get a string returned from JavaScript but cannot find a good way. Like in the code below, is there a way to get content of 'substring' in Ja..... More

Print this item

  Sum only some values from a two-dimensional list
Posted by: bronfai - Feb-11-2018, 04:39 PM - Forum: General Coding Help - Replies (2)

Hello,
I'm a newbie. I have a two-dimensional list like this
[python]
DATA = 0
# quality control flag
QC = 1
samples = [[0.1, 33.3, 4.4], [1, 0,..... More

Print this item

  Slow execution of MS Access queries
Posted by: Anirudh_Avantsa - Feb-11-2018, 03:15 PM - Forum: General Coding Help - Replies (4)

Hello All,

We are using MS access as back end database and using python to import the data from excel. Any insert/update/delete statement is taking..... More

Print this item

  Find not working properly
Posted by: fad3r - Feb-11-2018, 02:38 PM - Forum: Homework - Replies (2)

Hi,
A friend is mentoring me on python (thus the world list we are using)

My challenge is in 1 line code to find all the words that have s in them..... More

Print this item

  how to generate sha256 hash for each line of my txt file | using python version 3.6.4
Posted by: rajtekken5 - Feb-11-2018, 12:40 PM - Forum: General Coding Help - Replies (2)

I am creating a project for generating sha256 hash from text file
I want to read each line from my text file and generate sha256 for it.

Here is t..... More

Print this item

  Variable info from a FOR loop
Posted by: Steffenwolt - Feb-11-2018, 11:25 AM - Forum: General Coding Help - Replies (4)

Hi all,
I have this FOR loop reading 8 channels from 3008 adc.
It runs eight times and thus i want 8 different values (ADC) as a result.

[python]..... More

Print this item

  Python math error
Posted by: nadirdogan - Feb-11-2018, 07:57 AM - Forum: General Coding Help - Replies (3)

Hi all,

I'm new at python but seen a math error. (Python 3.6.4)
Please simply run the code below and see the results.
Also you can try with diffe..... More

Print this item

  summing rows/columns more quickly
Posted by: jon0852 - Feb-11-2018, 06:45 AM - Forum: Data Science - Replies (3)

Hi, I recently had an assignment whereby we had to get sums of different columns. The original number of columns was 64 and we wanted to reduce it to..... More

Print this item

  Error Message Pip
Posted by: webdesign909 - Feb-11-2018, 04:19 AM - Forum: Web Scraping & Web Development - Replies (6)

Trying to install pip selenium web driver and getting an error
message. Please view jpeg file to view the exact message.


New to Python and I am..... More

Print this item

  applying total in a loop to a list
Posted by: JustinxFFx - Feb-11-2018, 02:59 AM - Forum: Homework - Replies (1)

I am having trouble figuring out why my totalList is only printing the last total that is appended to the list rather than everyone that is apart of t..... More

Print this item

  Program: count and find
Posted by: Truman - Feb-11-2018, 12:12 AM - Forum: Homework - Replies (3)

# [ ] find and report (print) number of w's, o's + use of word "code"
work_tip = "Good code is commented code"

# [ ] count times letter "i" appea..... More

Print this item

  excercise python list
Posted by: Kykoss - Feb-10-2018, 08:08 PM - Forum: Homework - Replies (7)

Hi,I want you to help me with the solution of an exercise which is very difficult for me to simply tell me the solution in a very simple and understan..... More

Print this item

  Help with csv
Posted by: perrud - Feb-10-2018, 06:12 PM - Forum: General Coding Help - Replies (1)

I'm learning progamming, so i start to learn about CSV, but when I tryed to make something with that i noobed.
Basically I make a progam who you can ..... More

Print this item

  How to geckodriver anonymous firefox
Posted by: mariolopes - Feb-10-2018, 05:56 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi
I need to lunch firefox with the module anonymous. The following code lunchs firefox without the module anonymous. How can I do it?
regard..... More

Print this item

  how to open folder and change files in it
Posted by: ahmadeldawoody - Feb-10-2018, 05:06 PM - Forum: General Coding Help - Replies (2)

Hi everyone , I am a new member in this froum and need help , I want to develop an app that open a folder in my file system an list files and rename s..... More

Print this item

  singleton using metaclass
Posted by: bb8 - Feb-10-2018, 03:27 PM - Forum: General Coding Help - Replies (12)

i need to write a singleton so i looked up some examples. here's one of them from ..... More

Print this item

  Some guidance need'ed.
Posted by: LordDeanUK - Feb-10-2018, 01:30 PM - Forum: Jobs - Replies (2)

Hi Guys,

I have a Small UK company i employ about 6 people as energy consultants and we get paid commission for signing up new & existing Business ow..... More

Print this item

  How to import dependencies from a different directory?
Posted by: ayunus - Feb-10-2018, 12:18 PM - Forum: General Coding Help - Replies (3)

Hi,

I am a php developer and new to python. I am trying to create a custom script for an existing application and not sure how to do it.

this is..... More

Print this item

  Function parameters
Posted by: grkiran2011 - Feb-10-2018, 12:07 PM - Forum: General Coding Help - Replies (2)

Hi Viewer,

While defining function parameters we should pass the dynamic keyword argument (**kwargs) at the end. Otherwise python throws a syntaxer..... More

Print this item

  Organizing tips
Posted by: Demini - Feb-10-2018, 05:14 AM - Forum: General Coding Help - Replies (1)

Does anyone have a reference for proficient organizing?

Print this item

  hash bang
Posted by: Skaperen - Feb-10-2018, 02:01 AM - Forum: News and Discussions - Replies (12)

something i am trying to come up with is a hash bang string to begin Python scripts with, that will try to run Python3, but will fall back to t..... More

Print this item

  Creating Program Homework
Posted by: ShakenBake - Feb-09-2018, 11:05 PM - Forum: Homework - Replies (2)

Create a python program that gets students lastname, firstname, and finalmark, then calculates the letter grade based on the following criteria;

A ..... More

Print this item

  Just a bit confused
Posted by: TimeForged - Feb-09-2018, 10:40 PM - Forum: Homework - Replies (2)

So I am trying to figure out how to display a menu in the current code where it prompts the user to display a menu like this

please choose a flavor
1..... More

Print this item

  redefinition of unused function
Posted by: bb8 - Feb-09-2018, 07:00 PM - Forum: General Coding Help - Replies (16)

flake8 complains about redefinition.
[python]def do_work(self, name):
return self.do_work(self.__map[name])

def do_work(self, some_object):
#..... More

Print this item

  Recommend an Excel library for writing data?
Posted by: jonesin1974 - Feb-09-2018, 03:48 PM - Forum: General Coding Help - Replies (1)

Hi all,

Can anyone recommend a Python library to create Excel files?

Aside from writing the actual data, my only other requirements are:
1. Ma..... More

Print this item

  CSV unable to import (traceback error)
Posted by: learnermarx - Feb-09-2018, 03:06 PM - Forum: General Coding Help - Replies (3)

Hey I'm new to Python programming

I wrote this code by seeing from youtube channel
[python]
import csv

with open ('example.csv', "r") as csvf..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 2 hours ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... 6 hours ago Winfried Winfried General Codin...
  PermissionError: [Errno 1... 9 hours ago Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 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...
Most views
  The best Prog... 579070
  Tutorial Requ... 511141
  Web Scraping ... 442059
  Newbie with P... 386109
  New Users Int... 378342
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 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Today
fobby888 Today
digitalboy346 Today
ben9090o Today
ViktoriaMetodieva Today

User Panel Messages

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