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,585
» Latest member: Cio
» Forum threads: 38,637
» Forum posts: 175,042

Full Statistics

Online Users
There are currently 512 online users.
» 1 Member(s) | 503 Guest(s)
Bing, Yandex, Baidu, Google, Facebook, gqdeep01

Latest Threads
Let user search read-only...
Forum: GUI
Last Post: Winfried
41 minutes ago
» Replies: 0
» Views: 6
Using EventSource in Pyth...
Forum: Web Scraping & Web Development
Last Post: snippsat
6 hours ago
» Replies: 1
» Views: 93
need help with tracking a...
Forum: General Coding Help
Last Post: gqdeep01
Today, 02:14 AM
» Replies: 0
» Views: 62
A penny doubled every day...
Forum: Homework
Last Post: DeaD_EyE
Yesterday, 05:26 PM
» Replies: 5
» Views: 184
I have a question
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 09:26 AM
» Replies: 2
» Views: 196
Problème d'exécutable
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 09:22 AM
» Replies: 1
» Views: 178
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-20-2025, 07:21 PM
» Replies: 11
» Views: 512
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
Jun-20-2025, 04:55 AM
» Replies: 3
» Views: 151
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Jun-20-2025, 12:07 AM
» Replies: 3
» Views: 215
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
Jun-19-2025, 03:37 AM
» Replies: 2
» Views: 163

 
  How to extract two data types from a text file and store them as two separate lists
Posted by: banf - Jan-16-2017, 07:03 PM - Forum: Homework - Replies (1)

I'm currently making a program which will compress a user sentence into two variables unique_words and positions. Unique words will be all the unique ..... More

Print this item

  Basic code help
Posted by: crawlinkingsnake - Jan-16-2017, 06:16 PM - Forum: General Coding Help - Replies (2)

Hey there, trying to run a basic Boolean program however I'm having trouble printing one of my options.
I want to print "True" for values equal to 0..... More

Print this item

  List to float
Posted by: Felipe - Jan-16-2017, 02:41 PM - Forum: General Coding Help - Replies (6)

Hi guys,

I have a 3.1 Gb csv file which I try to clean of bad data. So, I wrote the code below:

[python]
#!/usr/bin/env python3

import csv
..... More

Print this item

  eport selections to dic
Posted by: mintsilver - Jan-16-2017, 01:06 PM - Forum: GUI - No Replies

i want to export the selections from dropdown to dic like:

ANSWER_KEY = {0:3,1:1,2:6,3:4,4:4,5:4,6:4,7:4,8:4,9:4}
i try to used..... More

Print this item

  Error in PyScripter
Posted by: Pascal15 - Jan-16-2017, 11:52 AM - Forum: General Coding Help - Replies (3)

I started to learn Python and wrote my first program in PyScripter

# coding: utf-8
print ("Hello!")

But when I press "Run" button it shows me this e..... More

Print this item

  Pythonista/Pythoneer
Posted by: ichabod801 - Jan-16-2017, 11:28 AM - Forum: Bar - Replies (11)

I used to prefer pythonista, because I thought it sounded more revolutionary. But then I realized it sounded like someone who writes scripts to serve ..... More

Print this item

  Error with Pyinstaller Modules
Posted by: sym - Jan-16-2017, 10:33 AM - Forum: Data Science - Replies (9)

Hey, I'm trying to create a bundled executable via PyInstaller for an assignment. Already tried multiple re-installations of Python but still PyInstal..... More

Print this item

  this is inconsitent with documentation
Posted by: Skaperen - Jan-16-2017, 05:49 AM - Forum: General Coding Help - Replies (4)

the strftime() method has a single common documentation for the two modules (datetime and time) it is found in, but ...
[output]lt1/forums /home/foru..... More

Print this item

  Python code with serial port and global undefined
Posted by: marciokoko - Jan-16-2017, 12:43 AM - Forum: General Coding Help - Replies (13)

I have the following code and I got this error after adding a few ser.close() lines (identified with *** down below):

[quote]
[color=#222222][size..... More

Print this item

  how do I print cost variable on GUI?
Posted by: Doug - Jan-15-2017, 10:30 PM - Forum: GUI - Replies (4)

how do I print cost variable on GUI? it says: cost is not defined. Thank you!

from tkinter import *

class Application(Frame):

    def __init_..... More

Print this item

  program doesn't run.
Posted by: Doug - Jan-15-2017, 07:27 PM - Forum: GUI - Replies (2)

Was watching a tutorial on youtube on how to use OOP in building GUI, but can not run identical code myself.
Error: "in line 27 app = Application() T..... More

Print this item

  HTML5?
Posted by: melakorolo - Jan-15-2017, 07:10 PM - Forum: Bar - Replies (3)

Anyone here worked with HTML5 much yet?

Print this item

  Invalid syntax: string index out of range
Posted by: darkreaper1959 - Jan-15-2017, 06:07 PM - Forum: Homework - Replies (6)

[python]
import time
import sys

# introduction to  the game

print("You are playing the guessing game! To win you must guess the word, within t..... More

Print this item

  Access google sheets like a csv file
Posted by: perttybug - Jan-15-2017, 05:33 PM - Forum: Code sharing - Replies (5)

Hello all,

    I wrote a python library for accessing google sheets based on google's new sheet api v4, named pygsheets.

    Its well documented..... More

Print this item

  New line in pdf?
Posted by: panoss - Jan-15-2017, 07:11 AM - Forum: General Coding Help - Replies (10)

I 'm using reportlab for pdf creation..
My problem is new line, I tried \n and <br/> but failed.
What do you suggest?

Print this item

  pass after a loop is a syntax error???
Posted by: Skaperen - Jan-15-2017, 06:33 AM - Forum: General Coding Help - Replies (5)

i don't believe this should be an error
[output]lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] ..... More

Print this item

  terminal/console geometry
Posted by: Skaperen - Jan-15-2017, 03:34 AM - Forum: General Coding Help - Replies (12)

on linux/unix/posix i can do this:

rows, columns = subprocess.check_output(['stty', 'size']).split()
to get terminal geometry
i..... More

Print this item

  self in functions
Posted by: marciokoko - Jan-15-2017, 02:01 AM - Forum: General Coding Help - Replies (3)

I created a class:

[python]
class AIHome:

def __init__(self):
     self.fetchUpdate();

def fetchUpdate(self):
     self.relayToggle()

d..... More

Print this item

  I don't understand this result
Posted by: Ponomarenko Pavlo - Jan-14-2017, 05:52 PM - Forum: General Coding Help - Replies (3)

>>> f = [].extend(['spam', 32, 44])
>>> type(f)
         <class 'NoneType'>

Print this item

  Function problem
Posted by: garretmorion - Jan-14-2017, 05:17 PM - Forum: Homework - Replies (9)

[color=#242729][size=small][font=Arial,]'m relatively new to python and the only other experience I've had is C++. Whenever I define a function in Pyt..... More

Print this item

  file descriptors
Posted by: Skaperen - Jan-14-2017, 10:13 AM - Forum: General Coding Help - Replies (7)

this will be run in linux.  i have a function that reads from and writes to file descriptors ... the things that are used by os.read() and os.w..... More

Print this item

  Conver to List
Posted by: landlord1984 - Jan-14-2017, 03:27 AM - Forum: General Coding Help - Replies (1)

I am playing to convert a tuple to a list. I thought using list() is simple, but not...What's wrong?


[python]aTuple = (123, 'xyz', 'zara', 'abc')..... More

Print this item

  Create a new list by comparing values in a list and string
Posted by: DBS - Jan-14-2017, 01:37 AM - Forum: General Coding Help - Replies (2)

Hello,

I have elements in a predefined list and a query string.  I would like to check if the query_str has any values in predefined list and if so..... More

Print this item

  How can I make a sentinel value NOT be initialized in a class/method - OOP?
Posted by: netrate - Jan-13-2017, 10:23 PM - Forum: General Coding Help - Replies (2)

I am testing out some basic Object Oriented Programming in Python.  The basics:

  • User enters a name
  • While loop with a sentinel value ..... More

Print this item

  Remove files from a directory
Posted by: pyth0nus3r - Jan-13-2017, 07:39 PM - Forum: General Coding Help - Replies (3)

Hello
Below is an example from a book called Automating the boring stuff with Python.
This code is supposed to deletes all files that end with .txt ..... More

Print this item

  Preparing ground in a designed device
Posted by: Prometheus - Jan-13-2017, 06:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone. 

I am supporting a team creating a concept for a tactile matrix touch pad meant for blind people. 

Could you please offer some guid..... More

Print this item

  Windows: Put File automatically under Cursor for Drag & Drop
Posted by: sym - Jan-13-2017, 02:38 PM - Forum: General Coding Help - Replies (1)

Hello, I'm stuck on the following problem and can't seem to find a solution for it. Does anyone know if this is possible?

On Windows I have the dir..... More

Print this item

  Splitting A String In Python
Posted by: Saif133 - Jan-13-2017, 01:54 PM - Forum: Homework - Replies (6)

Implement a function that, given a feedback
and the size  of the screen, splits the feedback
into lines so that:

Print this item

  Error: python.exe application error
Posted by: panoss - Jan-13-2017, 12:18 PM - Forum: General Coding Help - Replies (5)

I run my application through PyCharm.
I get an error on closing my application:
'python.exe application error the instruction at "0x6703e506"..... More

Print this item

  matrix from matrix python numpy array
Posted by: shei7141 - Jan-13-2017, 11:36 AM - Forum: General Coding Help - Replies (1)

Hi all,

I have just started python coding Cool  and have ran into my first brick wall Wall  .  Can some one please assist me with the follo..... More

Print this item

  decimal
Posted by: Skaperen - Jan-13-2017, 07:09 AM - Forum: Bar - Replies (2)

you can convert float to decimal but you can't divide a decimal by a float.  anyone know why that is?

Print this item

  Open previous csv file to read value under column for comparison
Posted by: DBS - Jan-13-2017, 05:36 AM - Forum: General Coding Help - Replies (3)

Hello,

I  need to check the value under the columns of two csv files (the current open file and the csv file written immediately before it) and if ..... More

Print this item

  What is an Encryption And Decryption
Posted by: Lamon112 - Jan-13-2017, 02:30 AM - Forum: General Coding Help - Replies (8)

Hi guys so i got this one task that I should make an Encryption And Decryption in python so im curious what does that actually mean.
Thanks for your ..... More

Print this item

  win32 package: self-modifying source code???
Posted by: Orthoducks - Jan-12-2017, 09:56 PM - Forum: General Coding Help - Replies (3)

I'm trying to use win32 to edit Microsoft Word documents in Python code. So far I've got this, gleaned from various examples on the web:
[python]impo..... More

Print this item

  Best software for creating charts????
Posted by: birdieman - Jan-12-2017, 09:15 PM - Forum: General Coding Help - Replies (9)

I am still new to Python, so my wording of the question may not be quite right.  I will need to produce charts (nothing very fancy, primarily stacked ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [WxPython] Let user searc... 41 minutes ago Winfried Winfried GUI
  Using EventSource in Pyth... 6 hours ago rbadis snippsat Web Scraping ...
  need help with tracking a... Today, 02:14 gqdeep01 gqdeep01 General Codin...
  A penny doubled every day... Yesterday, 17:26 esoyboy DeaD_EyE Homework
  I have a question Yesterday, 09:26 Clictithe noisefloor General Codin...
  Problème d'exécutable Yesterday, 09:22 Zauf noisefloor General Codin...
  How do select this table ... 06-20, 19:21 MarkMan snippsat Web Scraping ...
  [split] Simple webbot for... 06-20, 04:55 AB073 Plyth Code Review
  Dynamic Module Import Err... 06-20, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... 06-19, 03:37 shreyapatel Plyth News and Disc...
  Setting AST node lineno c... 06-18, 21:15 voidtrance deanhystad General Codin...
Most views
  The best Prog... 572299
  Tutorial Requ... 484805
  Web Scraping ... 436834
  Newbie with P... 379663
  Thread remain... 351227
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12066
buran 8173
snippsat 7340
deanhystad 6839
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
Cio Today
Harsh Today
gqdeep01 Today
woefdram Yesterday
Yorrana Yesterday

User Panel Messages

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