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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 45 Guest(s)
Bing, Google, Applebot

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

 
  Creating a program that records speed in a speed trap
Posted by: astonavfc - Nov-01-2016, 05:10 PM - Forum: General Coding Help - Replies (7)

That is my code so far it says my subtraction is wrong can you point out anything I can do better.

Thanks.

[python]from datetime import datetime..... More

Print this item

  list of strings to a single string
Posted by: tebirkes - Nov-01-2016, 04:58 PM - Forum: General Coding Help - Replies (12)

How do I convert a list of strings into a single string in a function where the list of strings is my argument? Without using join?
If you have a dic..... More

Print this item

  How does thid work?
Posted by: Blue Dog - Nov-01-2016, 03:59 PM - Forum: General Coding Help - Replies (2)

Here is a email scraper:

[python]
#Ok, I know what line 0ne does:
import re
#Line 2 I know what is does:
import urllib2
#Line 3 res is a var =..... More

Print this item

  Running operations without compiling code multiple times
Posted by: arka7886 - Nov-01-2016, 03:51 PM - Forum: General Coding Help - Replies (3)

Hi all,
I am fairly new to Python, though I have computing experience in other languages. I have a very basic question here: I want to run operations..... More

Print this item

  Please help me!! Can't get rid of error message in Python.
Posted by: TOM - Nov-01-2016, 07:34 AM - Forum: Homework - Replies (3)

Hi! I have a question about Ctypes. 
I'm attempting to build a small object to pass around between fortran code and Python. But I find an error, whic..... More

Print this item

  How to increase speed of access element in 2 dimension array?
Posted by: Diver - Nov-01-2016, 06:10 AM - Forum: Homework - Replies (6)

Hi there.
How to increase speed of access element in 2 dimension array?

with matrix size 1000x1000 
each creation of sum matrix take about 1 seco..... More

Print this item

  I'm not sure what I'm doing wrong here...
Posted by: Fazz - Nov-01-2016, 01:44 AM - Forum: General Coding Help - Replies (2)

Hey all, beginning programmer here.

I've been working on a very simple Mad Libs-style "game" in python 2.7 and I've run into some trouble when tryi..... More

Print this item

  Text, one letter at a time
Posted by: MACA - Oct-31-2016, 08:48 PM - Forum: General Coding Help - Replies (7)

So I used to know how to do this thing where my text would be typed at a speed of 0.1 instead of immediately. But now I have forgotten it. I use to us..... More

Print this item

  Input Replacement
Posted by: palmtrees - Oct-31-2016, 07:24 PM - Forum: Homework - Replies (7)

I am writing a tic-tac-toe style game code, where you use 3 variables to make 3 in a row instead of just X's and O's. I originally wrote a tic-tac-toe..... More

Print this item

  Interfacing with a USB game controller
Posted by: barryjo - Oct-31-2016, 05:56 PM - Forum: General Coding Help - Replies (2)

When I plug a USB keyboard into my computer, I can interface with it using standard python print and read statements. The keyboard is of course a USB ..... More

Print this item

  need help for xml
Posted by: just_started_python - Oct-31-2016, 05:19 PM - Forum: Homework - Replies (9)

XML
can some one please guide me through this one . I am trying to make an xml from the data below .
Drug XML
Create an XML structure that descr..... More

Print this item

  Superimpose figures
Posted by: Scientifix - Oct-31-2016, 04:10 PM - Forum: Data Science - Replies (2)

Hello,
I have the following code :
[python]
from scipy.spatial import ConvexHull
from scipy.spatial import convex_hull_plot_2d
import matplotlib...... More

Print this item

  TableXYZ_Processing_3D
Posted by: Mik83 - Oct-31-2016, 12:32 PM - Forum: General Coding Help - Replies (1)

Hi everybody!

Firstly, many thanks to the ones who are gonna read this post.
I just registered on this forum because I have a question about a Py..... More

Print this item

  quick way to convert in both 2 and 3
Posted by: Skaperen - Oct-31-2016, 06:59 AM - Forum: General Coding Help - Replies (10)

i am collecting simple code to make a variety of conversions in both python 2 and python 3 (e.g. same code works in both versions) Wall

1. int..... More

Print this item

  Regex error: 'NoneType' object has no attribute 'group'
Posted by: DBS - Oct-31-2016, 06:22 AM - Forum: General Coding Help - Replies (8)

Hello,

In the code below, I receive the error listed in the title of my question.  I'm trying to extract the substring between asterisks: '[i]Some ..... More

Print this item

  shortening python
Posted by: Skaperen - Oct-31-2016, 03:48 AM - Forum: Bar - Replies (2)

i run Ubuntu Linux and have added symlinks so i can invoke python and python3 with just py and py3.  this is what i..... More

Print this item

  Web-scraping part-2
Posted by: snippsat - Oct-30-2016, 11:21 PM - Forum: Web Scraping - Replies (10)

Update 1-4-2018

  • All tested Python 3.6.4
  • Added more Selenium stuff and headless mode setup
  • Added Final projects which play ..... More

Print this item

  ImportError
Posted by: cbrown1913 - Oct-30-2016, 11:00 PM - Forum: Homework - Replies (8)

Hi, I am writing a program and when I try to run it I get an ImportError saying no module named 'arduino'. I am using the newest linux with everything..... More

Print this item

  lxml, can't install
Posted by: Blue Dog - Oct-30-2016, 02:51 PM - Forum: General Coding Help - Replies (8)

I found one of my problem why some times a code snippet would run and other time it would not. I use vs express as my EDI, well it would load up with ..... More

Print this item

  send file to codepad
Posted by: metulburr - Oct-30-2016, 11:16 AM - Forum: Code sharing - Replies (3)

Ive used this script for years....havent even bothered to update it. 

[python]import urllib
import urllib2
import sys

'''
send argv[1] file t..... More

Print this item

  Python Threading
Posted by: Amro_Al - Oct-30-2016, 09:55 AM - Forum: General Coding Help - Replies (3)

I am a beginner in programming but I was able to develop a tracking program in python. It finds and tracks a T shape in a video and return its coordin..... More

Print this item

  Is the interpreter that comes with Anaconda different?
Posted by: mscottveach - Oct-30-2016, 07:28 AM - Forum: General Coding Help - No Replies

So, I have anaconda installed on my OSX machine but have never used it. My experience with python has
been exclusively via PyCharm using 2.7.10 -- to..... More

Print this item

  looking for example code for GUI
Posted by: Skaperen - Oct-30-2016, 03:34 AM - Forum: GUI - Replies (8)

i am looking for complete and working examples of GUI things done in Python with your favorite GUI tools.

best would have a range of complexity fro..... More

Print this item

  simple image uploader
Posted by: metulburr - Oct-30-2016, 03:13 AM - Forum: Board - Replies (6)

I added a plugin which creates a button for a simple image uploader. In addition to the default attachment, it allows drag and drop for images, etc.
..... More

Print this item

  json
Posted by: just_started_python - Oct-29-2016, 06:32 PM - Forum: General Coding Help - Replies (7)

Can anyone please guide with this 



- JSON for hospital information

Take the list of information below and create a JS..... More

Print this item

  Funny English
Posted by: Kebap - Oct-29-2016, 05:32 PM - Forum: Bar - Replies (41)

So I learned the language when I was a kid still but nowadays use it quite well, I hope. Anyways, I always find it extremely funny when I find native ..... More

Print this item

  isolating part of elemnnt in a list
Posted by: trepaning - Oct-29-2016, 04:06 PM - Forum: General Coding Help - Replies (9)

this is a list

[['1 A'], ['2 B']]

what I want to do is get at the number, add another number to it, and put it back together with the new number..... More

Print this item

  Game of life using IDLE
Posted by: Informatics109 - Oct-29-2016, 12:25 PM - Forum: Homework - Replies (4)

Hello, im creating the famous game of life, but without using pygame, numpy and all other programs, just the basic IDLE. My plan is to create a window..... More

Print this item

  old code
Posted by: Skaperen - Oct-29-2016, 04:45 AM - Forum: Bar - Replies (3)

i was listing all my code sorted by date/time and ran across some of my earliest python code ... very ugly.

this is from 2010 to fetch the NAT conf..... More

Print this item

  from copy import deepcopy fails
Posted by: Skaperen - Oct-29-2016, 02:42 AM - Forum: General Coding Help - Replies (7)

i am getting this import failure even in this minimal code:

[output]lt1/pdh /home/pdh 7> cat tryx.py
from copy import deepcopy
lt1/pdh /home/pdh ..... More

Print this item

  Using IDLEX
Posted by: horacapp - Oct-28-2016, 10:30 PM - Forum: General Coding Help - Replies (1)

Hi
How can I call the IDLEX editor just double clicking the .py file?
That is
How can I associate IDLEX with the py file extension?
Thank You

Print this item

  Simple question help me plz
Posted by: PedroGPT - Oct-28-2016, 07:03 PM - Forum: Homework - Replies (4)

Hello. If I have a string: 'ABC', how can I give each character a value so it can be coded?

ex: A = 1
     B = 2
     C = 3

input:

x = 'ABC..... More

Print this item

  Overlay two lines on a single seaborn plot
Posted by: pemfir - Oct-28-2016, 04:38 PM - Forum: Data Science - Replies (1)

[quote]
issue i am facing is that when i want to plot two datasets into a single seaborn graph, the graph does not maintain the correct x-axis from e..... More

Print this item

  How to umount from python script?
Posted by: demosthenesk - Oct-28-2016, 08:10 AM - Forum: General Coding Help - Replies (2)

Hello, i have the next umount function:

[python]
    def umount(self):
        '''unmounts VirtualDVD'''
        cmd = 'gksudo umount VirtualDVD..... More

Print this item

  a = b = c
Posted by: Skaperen - Oct-28-2016, 07:33 AM - Forum: General Coding Help - Replies (5)

applying the TIASIIW method i found that

a = b = c
assigns c to both a and b.
it works in both 2.7.12 and 3.5.2.
[i]i cannot find..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 4 hours ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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... 578686
  Tutorial Requ... 509145
  Web Scraping ... 441841
  Newbie with P... 385795
  New Users Int... 375072
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 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07
EchoFlowar3Dip 11-07

User Panel Messages

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