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,923
» Latest member: jeremyn24503
» Forum threads: 38,719
» Forum posts: 175,489

Full Statistics

Online Users
There are currently 46 online users.
» 1 Member(s) | 39 Guest(s)
Bing, AOL, Google, AOL, Applebot, lemonred

Latest Threads
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
2 hours ago
» Replies: 7
» Views: 1,540
Python Installation issue
Forum: News and Discussions
Last Post: Dev
2 hours ago
» Replies: 4
» Views: 15,465
New to the field
Forum: News and Discussions
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 221
Too much space between gr...
Forum: GUI
Last Post: deanhystad
11 hours ago
» Replies: 1
» Views: 239
data input while debuggin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:52 PM
» Replies: 1
» Views: 258
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 552
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,334
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,335
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,036
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,287

 
  PyGame Colors
Posted by: Zman350x - Jan-10-2017, 06:17 PM - Forum: Game Development - Replies (2)

Here's some Python/PyGame Colors. Enjoy!!! Smile
[python]white = ((255,255,255))
blue = ((0,0,255))
green = ((0,255,0))
red = ((255,0,0))
bla..... More

Print this item

  repeat function?
Posted by: ScarletSwitch - Jan-10-2017, 12:49 PM - Forum: General Coding Help - Replies (4)

is there a repeat function in python?
what I want to do is
[code]
use = input('Attack?')
if use == 'Yes':
    opponent_health = opponent_health -..... More

Print this item

  reverse generator
Posted by: Skaperen - Jan-10-2017, 09:28 AM - Forum: General Coding Help - Replies (7)

i like the simple way a generator can be created in python.  but i need something that is the opposite.   what i need is the ability to run, keeping i..... More

Print this item

  Cannot close matplot figure
Posted by: landlord1984 - Jan-10-2017, 08:35 AM - Forum: General Coding Help - Replies (5)

I thought it should be easy, but I couldn't get to close my figure.

My code:
[python]
import matplotlib.pyplot as plt
x=[1,2,3]
y=[5,7,4]
x2=[1,2,3]
..... More

Print this item

  datetime.datetime.now
Posted by: Skaperen - Jan-10-2017, 04:06 AM - Forum: General Coding Help - Replies (4)

i want to import the datetime.datetime.now function, only.  how can i do that?  i still don't understand the package module system.

Print this item

  Ho can I get the first parent of a class?
Posted by: panoss - Jan-09-2017, 01:10 PM - Forum: GUI - Replies (2)

I have a main class.
This creates another class, achild.
achild creates another class, bchild.
bchild can get it's parent (ach..... More

Print this item

  print pandas's df
Posted by: landlord1984 - Jan-09-2017, 08:03 AM - Forum: Data Science - Replies (4)

Here is my code:

import pandas as pd
web_stats={'Day':[1,2,3,4,5,6],
           'Visitor':[43,34,65,56,29,76],
           'Bounce Rate':[65,67,7..... More

Print this item

  TypeError: can't multiply sequence by non-int of type 'str'
Posted by: rmpadilla73 - Jan-09-2017, 03:28 AM - Forum: Homework - Replies (4)

Hello, I'm new to Python and I'm trying to type some code for an assignment.  It seemed relatively easy but it turned out being a hassle.
I get the f..... More

Print this item

  Installation problems
Posted by: leap - Jan-09-2017, 01:27 AM - Forum: Game Development - Replies (4)

Hi, I have a bit of a dilemma. I need both pygame and python on my computer. I have read the forums available and I have tried many suggestions availa..... More

Print this item

  Installation of bs4 and BeatifulSoup
Posted by: landlord1984 - Jan-08-2017, 11:42 PM - Forum: Web Scraping & Web Development - Replies (7)

I am trying to use BeatifulSoup from bs4. I am using eclipse IDE.

I followed the installation guide. Install by $ pip install beautifulsoup4:

Re..... More

Print this item

  Python 3.6 installation on Windows 10
Posted by: Python72 - Jan-08-2017, 09:29 PM - Forum: General Coding Help - Replies (7)

I installed Python 3.6 on my desktop with Windows 10. I put a shortcut on the desktop but when I double click it nothing happens. Advice would be grea..... More

Print this item

  Help on Hopfield Neural Network
Posted by: gabrielw6 - Jan-08-2017, 08:44 PM - Forum: General Coding Help - Replies (1)

Hi all,

I've been working on making a python script for a Hopfield Network for the resolution of the shortest path problem, and I have found no suc..... More

Print this item

  Final exam calculator
Posted by: iliketocode - Jan-08-2017, 06:29 PM - Forum: General Coding Help - Replies (1)

Hi guys, I am trying to create a program that tells you what you need to get on an assignment to get a certain grade. However, if you need to get a ne..... More

Print this item

  Subprocess lib
Posted by: peterkl - Jan-08-2017, 05:42 PM - Forum: General Coding Help - Replies (2)

Hello guys,

I've been experimenting with the subprocess library in python 3.5 on linux.

I've been able to run a few commands with success, but..... More

Print this item

  Ouestion on Python Loop
Posted by: GOPI56 - Jan-08-2017, 01:25 PM - Forum: General Coding Help - Replies (2)

Hi All,
I have a question on this python which i have attached below. My question is i want the python script "PIRoncall.py" script to be run once bu..... More

Print this item

  Phyton Beginner Debug a File Python 2.7
Posted by: Darknet - Jan-08-2017, 12:59 PM - Forum: General Coding Help - Replies (1)

How can I start to Debugu a Python File 2.7

Print this item

  Scrapy install error with pip
Posted by: Darknet - Jan-08-2017, 12:20 PM - Forum: Web Scraping & Web Development - Replies (5)

I want to install scrapy.org

But wen i start install with pip install scrapy
I get these error:

visual c++ for python cl.exe failed with exit s..... More

Print this item

  pythondialog windows
Posted by: Mix3rn - Jan-08-2017, 11:48 AM - Forum: GUI - Replies (1)

Hello.
I want to create "unix like" dialogs using python in Windows.
I found pythondialog but it's only for unix/linux (  pythondialog.sourceforge.net..... More

Print this item

  dictionary, list and iteration
Posted by: Annie - Jan-08-2017, 09:50 AM - Forum: General Coding Help - Replies (2)

a = {7: 0.1, 8: 0.2, 11: 0.1, 12:0.2, 13:0.1, 14: 0.2}
b = [   100,              200,             300         ]
c = {}
expected re..... More

Print this item

  What is the capacity of console to display print conent?
Posted by: landlord1984 - Jan-08-2017, 04:41 AM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to print the source content of a website (by using urlopen the object and then print the object's read()).

Initially what it printed in..... More

Print this item

  How to parse pdfs in Python
Posted by: CharType - Jan-08-2017, 03:17 AM - Forum: General Coding Help - Replies (2)

I'm trying to write a program that gets and analyzes text from a pdf document, and I'm wondering what the best way is to do this in python. I download..... More

Print this item

  Promoted QGroupBoxes take data one from the other
Posted by: panoss - Jan-07-2017, 01:26 PM - Forum: GUI - Replies (1)

I 've made a class:
[python]
from PyQt4 import QtGui


class myClass(QtGui.QGroupBox):
   my_children = []

   def __init__(self, parent):
..... More

Print this item

  Recursive function not returning expected output...(Python speech recog module)
Posted by: bigmit37 - Jan-07-2017, 03:20 AM - Forum: General Coding Help - Replies (4)

Windows 7, Python 2.7, Bing text-to-speech API.


I' m having  trouble understanding why when I run the function it seems to be outputting


`N..... More

Print this item

  how to loop data in urllib?
Posted by: pythonlover - Jan-06-2017, 10:29 PM - Forum: General Coding Help - Replies (4)

Hello PyLovers,
I was trying to pass each line of the file as a value to the data. I am just pasting that part of the file. Please advise.

[line r..... More

Print this item

  Google Home
Posted by: micseydel - Jan-06-2017, 09:33 PM - Forum: Bar - Replies (2)

I just thought everyone should be aware of this:
https://www.twitch.tv/seebotschat

Print this item

  How can I get rid of the line following the sprites?
Posted by: Houston11 - Jan-06-2017, 09:20 PM - Forum: Game Development - Replies (1)

So I've been following along with a tutorial I found online, basically this code allows me to spawn in sprites and have them move across the screen. I..... More

Print this item

  I have a Toplevel button in tkinker that I want to close the window and then perform
Posted by: Bloodypizza17 - Jan-06-2017, 06:17 PM - Forum: GUI - Replies (2)

So far I have created a frame with some functioning buttons/menus. One of my menu buttons opens a new Toplevel window. This new Toplevel window is bas..... More

Print this item

  Find IP of a device on a local network
Posted by: mrburnzie - Jan-06-2017, 05:15 PM - Forum: General Coding Help - Replies (4)

Hello!


I'm working on a project for which I need to get a devices IP, but I know the host name aka. ID.

What kind of module should I use for t..... More

Print this item

  TypeError: string indices must be integers, not str
Posted by: hanieh - Jan-06-2017, 05:08 PM - Forum: Homework - Replies (4)

Hi,

I have a piece of code with the following type error:

Error:
TypeError: string indices must be integers, not str
I am new to Python..... More

Print this item

  Regular Expression (re module)
Posted by: ichabod801 - Jan-06-2017, 04:53 PM - Forum: Web Scraping - Replies (2)

Regular expressions are an excellent tool that all programmers should learn. They provide a compact syntax for expressing complicated text searches. T..... More

Print this item

  School assignment
Posted by: Ronaldo - Jan-06-2017, 04:29 PM - Forum: Homework - Replies (5)

Hi guys,

I need to develop the following.

A program that prompts the user for their age, on basis of their age the program needs to calculate ho..... More

Print this item

  Build a multi-variable dictionary
Posted by: birdieman - Jan-06-2017, 01:57 PM - Forum: General Coding Help - Replies (4)

I want to build a multi-variable dictionary.  Below is an abbreviated version:
[python]
Table = {BA: 5000, 6000, 7000, 8000, 10000, .5, .6, .8, .5, .4..... More

Print this item

  Having trouble installing self built package and install_requires
Posted by: blueslow - Jan-06-2017, 01:46 PM - Forum: Web Scraping & Web Development - Replies (8)

Hi,

I have built a sdist package with python2.7 setup.py sdist. The package is built. However when installing at localmachine, local machine virtua..... More

Print this item

  how to generate random 3d world (like minecraft) in python
Posted by: hsunteik - Jan-06-2017, 11:36 AM - Forum: General Coding Help - Replies (3)

how to generate a random 3d world (like minecraft) ?

Print this item

  Issues running Selenium to download zip file
Posted by: davehughes87 - Jan-06-2017, 11:00 AM - Forum: Web Scraping & Web Development - Replies (4)

[color=#242729][size=small][font=Arial,]Hi all. Self-taught Python noob here. I'm trying to write a short python script to visit a web page and simula..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to Python and Pygame 2 hours ago JMcM JMcM Game Developm...
  Python Installation issue 2 hours ago RFHill Dev News and Disc...
  New to the field 5 hours ago Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... 11 hours ago RonR deanhystad GUI
  data input while debuggin... Yesterday, 23:52 fred1232 Pedroski55 General Codin...
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575522
  Tutorial Requ... 496492
  Web Scraping ... 439618
  Newbie with P... 383227
  New Users Int... 364219
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7366
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
jeremyn24503 Today
homataheri Today
Dev Today
RonR Yesterday
SofiaAnatolie Yesterday

User Panel Messages

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