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,394
» Latest member: zcharlesoogleto9533
» Forum threads: 38,823
» Forum posts: 176,027

Full Statistics

Online Users
There are currently 38 online users.
» 1 Member(s) | 31 Guest(s)
Bing, Applebot, Google, AOL, AOL, Pedroski55

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
6 hours ago
» Replies: 1
» Views: 56
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,592
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 184
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,601
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 153
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 298
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,112
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,962
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 180
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 116

 
  Data window
Posted by: Felipe - Jan-17-2017, 11:05 AM - Forum: General Coding Help - Replies (5)

Hi guys,


I have a huge data file that the first two columns are coordinates (latitude, longitude). I look for a way to extract the data window fr..... More

Print this item

  find location of opengl object?
Posted by: hsunteik - Jan-17-2017, 10:59 AM - Forum: General Coding Help - Replies (1)

I use opengl with 3d perlin noise to generate a terrain like minecraft to create a game like minecraft?

How do I find the current coordinate of :
..... More

Print this item

  call by objects problem
Posted by: landlord1984 - Jan-17-2017, 07:51 AM - Forum: General Coding Help - Replies (1)

def f(x,l=[]):
    for i in range(x):
        l.append(i*i)
    print(l) 

f(2)
f(3,[3,2,1])
f(3)
Output:
[code][0, 1]
[3, 2, 1..... More

Print this item

  Python+Selenium+PhantomJS with proxy list
Posted by: technoir - Jan-17-2017, 05:22 AM - Forum: Web Scraping & Web Development - No Replies

In my script i used this method for working PhantomJS with proxy:
[code]service_args = [
   '--proxy=0.0.0.0:3128',
   '--proxy-type=http',
   ..... More

Print this item

  can only concatenate list (not "int") to list?
Posted by: landlord1984 - Jan-17-2017, 04:48 AM - Forum: General Coding Help - Replies (2)

I can do:
[1, 2, 3] + [4, 5, 6]
But I cannot do:

nums=[1, 2, 3]
nums[1:]+nums[0]
TypeError: can only concatenate list (no..... More

Print this item

  OSM - Open Source Mapping
Posted by: Larz60+ - Jan-17-2017, 04:40 AM - Forum: Bar - Replies (7)

Has anyone worked with Open Source Mapping?

Print this item

  Can WYSIWYG Die?
Posted by: micseydel - Jan-17-2017, 01:48 AM - Forum: Board - Replies (25)

I hate WYSIWYG, because it's so misleading. Look at https://python-forum.io/Thread-Python-co...25#pid8325 ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q 6 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580412
  Tutorial Requ... 519571
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386542
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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