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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,792

Full Statistics

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

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
5 hours ago
» Replies: 1
» Views: 91
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 141
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 124
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 124
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,252
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,377
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,577
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 201
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,208
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,458

 
  Streamline this format code
Posted by: birdieman - Jan-18-2017, 05:54 PM - Forum: General Coding Help - Replies (11)

Assuming each variable is to be formatted the same way, is there a way to avoid coding '${:,.0f}' in front of every variable that is to be printed on ..... More

Print this item

  Scheduler runs but then fails
Posted by: marciokoko - Jan-18-2017, 05:25 PM - Forum: General Coding Help - Replies (2)

I have this scheduler code:

[python]
# class to hold read and write
#!/usr/bin/env python

import serial
import logging
import time, datetime
from fi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Print line
Posted by: eftemie0000 - Jan-18-2017, 05:22 PM - Forum: General Coding Help - Replies (14)

How can i use a printed line as a varible?
I mean "a printed line (adsialdh) = x"

Print this item

  Is the Python website good for learning Python?
Posted by: OnisionTheOninonBoy - Jan-18-2017, 04:41 PM - Forum: General Coding Help - Replies (18)

Does it teach you everything?

Print this item

  How to put class method into new module?
Posted by: California - Jan-18-2017, 04:05 PM - Forum: GUI - No Replies

Hello everyone, this is my first post here. Hope to get some help if possible.
I have simple script which indicates state of checkBox widget which is..... More

Print this item

  Unable to assign selected values from existing list to an empty list
Posted by: haiderhussain - Jan-18-2017, 02:21 PM - Forum: General Coding Help - Replies (5)

Hello experts,

Python version : 2.7.10

I am using the below code for assigning the elements : a,b,c,d,e to the list : cities_list.

In order t..... More

Print this item

  Gridding and ploting
Posted by: Felipe - Jan-18-2017, 11:53 AM - Forum: Data Science - Replies (2)

Hi guys,

I have a txt file with 4 columns. The first two (y,x) are coordinates and the last one (z) is density. Here's my input:

[output]
    y..... More

Print this item

  (beginner) How do I insert a restart game option?
Posted by: hshe2 - Jan-18-2017, 11:33 AM - Forum: General Coding Help - Replies (1)

Hey there. I started learning code yesterday and my second program is a dice rolling game. The object is to roll a higher number than the computer. Th..... More

Print this item

  Psycopg2 import files from another map
Posted by: BluezamX - Jan-18-2017, 11:23 AM - Forum: Networking - Replies (1)

For a school project I'm working with Psycopg2 and PostgreSQL. However, when I try to run
[color=#000000][size=x-small][font=Courier New]connection =..... More

Print this item

  My code doesn't work.
Posted by: Loueegee - Jan-18-2017, 11:10 AM - Forum: General Coding Help - Replies (6)

My code is supposed to display options after you enter a choice but it doesn't.

[python]bank = 50000
password = "Heil"
weapon_imports = ("3 RPGS,..... More

Print this item

  Can OpenGL object be overlap?
Posted by: hsunteik - Jan-18-2017, 10:49 AM - Forum: General Coding Help - Replies (4)

lets say I create a cube with OpenGL in Python at x,y,z coordinate 5,5,5 respectively.
Then,I create another cube at the same coordinate,will the obj..... More

Print this item

  detect Multiple faces using dlib
Posted by: vijaysagi - Jan-18-2017, 10:04 AM - Forum: General Coding Help - Replies (1)

Hi all,

My requirement is i need to detect multiple faces in a single image.  The following code is able to read only single face. Pls suggest how ..... More

Print this item

  what i am currently coding
Posted by: Skaperen - Jan-18-2017, 02:39 AM - Forum: Bar - No Replies

i am currently coding a function that is given a list of lists of strings that makes up a list of posix/unix/linux commands that make up a command pip..... More

Print this item

  Error in computing FFT operation
Posted by: raady07 - Jan-18-2017, 01:33 AM - Forum: Data Science - Replies (1)

Python 3.5
Tensorflow GPU

Hello, 
I am trying to perform a fft operation on a variable
[python]
x = tf.Variable([1,2,3,4,5],df.type =tf.float32..... More

Print this item

  trac programming
Posted by: ichabod801 - Jan-17-2017, 11:36 PM - Forum: General Coding Help - Replies (4)

So I've been using trac for my latest project. (It's a wiki based ticket tracking system written in Python). It's written in Python, and there is a Py..... More

Print this item

  Some help with those lines
Posted by: eftemie0000 - Jan-17-2017, 07:55 PM - Forum: General Coding Help - Replies (1)

import send_mail
f = open('emails.txt', 'r')
for line in f:
print line
for EMAIL in send_mail
execfile('send_mail.py')
f.close()

I want to make a loo..... More

Print this item

  String out of range error
Posted by: Salah71 - Jan-17-2017, 06:37 PM - Forum: General Coding Help - Replies (11)

I am trying get this code for my HS class. I don't know much about python, i know the basics. We are trying to create strategy in Prisoners Dilemma. I..... More

Print this item

  List showing running total of instances
Posted by: Pie_Fun - Jan-17-2017, 04:26 PM - Forum: Homework - Replies (11)

Hi Folks,

to try and explain what I'm trying to do
Say I have a list of numbers
48,52,55,48,52,55,60,62,48
what I want is a corresponding list ..... More

Print this item

  Help with parsing strings!
Posted by: Cenzoooo - Jan-17-2017, 04:12 PM - Forum: General Coding Help - Replies (5)

Hello Python community!

I have problems with simple script which i created for gathering specific data from routers, so I would appreciate your hel..... More

Print this item

  subprocess.call change color of shell
Posted by: Aquaplant - Jan-17-2017, 02:11 PM - Forum: General Coding Help - Replies (8)

Hello there,
I am using the package 'subprocess' to call some programs with parameter shell=True. Now I wish to change the color of the produced outp..... More

Print this item

  PROBLEM WITH RUN A PRORAMME
Posted by: ALADDIN_1978 - Jan-17-2017, 01:06 PM - Forum: General Coding Help - Replies (1)

Here is the code

*************************

[python]import codecs 
from math import sqrt

users = {"Angelica": {"Blues Traveler": 3.5, "Broken..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 5 hours ago tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578718
  Tutorial Requ... 509362
  Web Scraping ... 441862
  Newbie with P... 385820
  New Users Int... 375252
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lary_p Yesterday
Cristiano 11-08
Alfredd 11-08
clayote 11-08
yutaozhou 11-07

User Panel Messages

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