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,933
» Latest member: bennyanderson482
» Forum threads: 38,721
» Forum posts: 175,503

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 42 Guest(s)
Google, Bing, Internet Archive, AOL, AOL, Apple

Latest Threads
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
10 hours ago
» Replies: 2
» Views: 338
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Sep-17-2025, 05:56 PM
» Replies: 9
» Views: 3,363
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 1,764
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 733
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 979
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,042
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,084
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 655
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,636
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,857

 
  Error in Matrix operation
Posted by: poorikanna - Oct-23-2017, 12:14 PM - Forum: General Coding Help - No Replies

from sympy import *
from time import time
from mpmath import radians
from math import *
import tf

'''
Format of test case is [ [[EE position],..... More

Print this item

  lxml saves empty tags with None text
Posted by: urano1981 - Oct-23-2017, 11:45 AM - Forum: General Coding Help - No Replies

I am modifying an XML file to change , into <,> (&lt;,&gt;). However when I find an empty element, it returns None.
My original XML value would be so..... More

Print this item

  subprocess with args
Posted by: haye - Oct-23-2017, 10:54 AM - Forum: General Coding Help - No Replies

Hi, i've made a python script which gives me some stats from NFS:

[python]import sys
import subprocess
import argparse


parser = argparse.ArgumentPa..... More

Print this item

  Python Classes or Functions for large scale application ?
Posted by: Vithulan - Oct-23-2017, 10:48 AM - Forum: General Coding Help - Replies (5)

We are developing large scale project in python, But we are stuck in deciding on whether to implement project using classes or just modules with funct..... More

Print this item

  JSON - Am I looking at an array already?
Posted by: anakaine - Oct-23-2017, 09:26 AM - Forum: General Coding Help - Replies (2)

[nodisplay]please give a runnable sample of your code with the full error text or a clear description of the problem

Please use python tags for cod..... More

Print this item

  Using classes? Can I just use classes to structure code?
Posted by: muteboy - Oct-23-2017, 08:26 AM - Forum: General Coding Help - Replies (5)

Hi,
I'm self-teaching myself Python using examples and the excellent documentation. However, I'm stuck trying to understand classes. Do I need them? ..... More

Print this item

  appending json file
Posted by: Buddy - Oct-23-2017, 07:57 AM - Forum: General Coding Help - Replies (5)

Hi Guys,

I'm really new to python and just starting studying the basics of it. So please forgive me if I'm abit slow in understanding :)

So he..... More

Print this item

  How to make faster this code
Posted by: Ace - Oct-23-2017, 07:39 AM - Forum: Homework - Replies (1)

Hello everyone ,
I have occurred in a problem with this code.The thing is that I had to find all prime numbers in a list and delete from list1 all th..... More

Print this item

  Python project "pong" without any makefile
Posted by: sylas - Oct-23-2017, 07:05 AM - Forum: General Coding Help - Replies (5)

To Meukburr. I put your pong project on Pycharm. It works well, but I am surprised not to find any "makefile", as ordinary with C++. Even no "idea" ap..... More

Print this item

  String Pulling
Posted by: pdatt794 - Oct-23-2017, 06:20 AM - Forum: General Coding Help - Replies (1)

What is the replacement of "sed" in python ?

I mean the way sed works in unix, what we can use to get same functionality ?

Thanks
Praveen Dutt

Print this item

  I'm working onn below code to extract data from excel using python
Posted by: kiran - Oct-23-2017, 03:46 AM - Forum: Data Science - Replies (1)

code
import xlrd
#import mysqldb
import datetime
import pandas as pd


ExcelFileName = "H:\Data.xlsx"
workbook = xlrd.open_workbook(Exc..... More

Print this item

  Function arguments help
Posted by: FingerButton - Oct-23-2017, 01:23 AM - Forum: Homework - Replies (2)

I've created a BMI Index in python for a class I'm in and I'm trying to get it to do a few things without any luck. What I want it to do is just ask f..... More

Print this item

  Empty variable when using print before readline
Posted by: fstefanov - Oct-22-2017, 10:51 PM - Forum: General Coding Help - Replies (3)

Appreciate if someone can explain me why: Dodgy

[python]with open('readme', 'r') as file_h:
    print 'file content:', file_h.readline().strip..... More

Print this item

  [split] Set bool variable
Posted by: RedSkeleton007 - Oct-22-2017, 09:23 PM - Forum: General Coding Help - Replies (1)

I can't believe I'm having so much trouble creating a boolean variable! I just want to tell my program to set a boolean to true if two strings match e..... More

Print this item

  Online IDE GUI problems
Posted by: Lux - Oct-22-2017, 09:09 PM - Forum: General Coding Help - Replies (6)

I am working on a project in python, and I was trying to use cloud9 to run it online. Unfortunately, my project uses tkinter, which doesn't seem to wo..... More

Print this item

  Playfair cipher encoder and decoder
Posted by: nuttinserious - Oct-22-2017, 08:54 PM - Forum: Homework - Replies (1)

Hi, I have to make a program that is like the playfair cipher which encodes a specific text and a second program that decodes the text. The instructio..... More

Print this item

  Function to convert
Posted by: slehee - Oct-22-2017, 07:59 PM - Forum: Homework - Replies (7)

How to write a function that takes a single parameter ( for example numbers from 1-10) then returns a string like "one" to number 1 and "two" to numbe..... More

Print this item

  Decision Tree
Posted by: Alberto - Oct-22-2017, 07:42 PM - Forum: General Coding Help - Replies (1)

I have the following problem. I have a written code attach below. The code constructs a tree based on the information in "my_data". The main idea is t..... More

Print this item

  Ending loop with string (capital & lowercase)
Posted by: MattWilk97 - Oct-22-2017, 07:33 PM - Forum: General Coding Help - Replies (3)

custname = input("Enter customer's name: ")
while custname.lower () != "QUIT":

I am needing to end the loop when customer's name is "Quit", "quit..... More

Print this item

  Polynomials
Posted by: RiceGum - Oct-22-2017, 06:21 PM - Forum: Homework - Replies (4)

I need to write a program that reads two numbers. Than used them in this polynomial: 3*x**3 - 5x + 0.8 and calculate all the values between them with ..... More

Print this item

  Sum up numbers using while(strings)
Posted by: RiceGum - Oct-22-2017, 05:44 PM - Forum: Homework - Replies (7)

[python]a = input()
p = 0
contador = 0
while a != ".":
a = input()
contador = contador + 1
if a == ".":
print(contador)
print(..... More

Print this item

  How to install flask boostrap?
Posted by: Peter_EU - Oct-22-2017, 02:51 PM - Forum: Web Scraping & Web Development - Replies (3)

Hallo,

I am following this tutorial: https://www.youtube.com/watch?v=8aTnmsDMldY

to make my very first serious(?) web.


Now,Python code cont..... More

Print this item

  Missing cookies in session with requests
Posted by: sechot - Oct-22-2017, 12:09 PM - Forum: Web Scraping & Web Development - No Replies

Hi

I wrote little function that login to website with requests module , i used session ,
the login process is sucsseful and other request are a..... More

Print this item

  Basic TCP to Pioneer VSX-1021 Stereo Receiver
Posted by: Bpet - Oct-22-2017, 12:05 PM - Forum: Networking - Replies (10)

Trying to send a command to my stereo. I can open a standard telnet session from command prompt in windows and simply connect using the IP and port 2..... More

Print this item

  cant download packages to pycharm
Posted by: Arifattal - Oct-22-2017, 10:46 AM - Forum: Web Scraping & Web Development - Replies (5)

hey guyys, im new to python and pycharm,
ive been trying to download beautifulsoup4 package onto pycharm with no success.
ive got an older version o..... More

Print this item

  User sign up and login system
Posted by: tesilstudent112 - Oct-22-2017, 10:03 AM - Forum: Homework - Replies (1)

Hey there everyone. For my homework, can i get some help with my computing homework project?

The task is to create a login system for a multi-choic..... More

Print this item

  Password Guesser Project
Posted by: RedSkeleton007 - Oct-22-2017, 05:46 AM - Forum: General Coding Help - Replies (17)

For now, I need an iterator that points to the chars in my AlphaNum string properly. We will start out with a password of just one char in length. Obs..... More

Print this item

  How to print the names of assignments if they are randomly selected
Posted by: Kongurinn - Oct-22-2017, 04:27 AM - Forum: General Coding Help - Replies (2)

Here is what I have (just playing around making a black jack game for a bit of Python practice):

[python]
from random import *
def main():
a..... More

Print this item

  Seeking buyer
Posted by: pp3cloud - Oct-21-2017, 10:41 PM - Forum: Jobs - Replies (1)

Seeking student or buyer to take over political prisoner database project Django, PostgreSQL, github, heroku. Based on Django Unleashed e.g. foreign ..... More

Print this item

  Clever Algorithms
Posted by: Larz60+ - Oct-21-2017, 10:20 PM - Forum: News and Discussions - Replies (1)

This book is for all the AI, Machine Learning and math lovers.

The code is written in ruby, but with the text can be converted to python without
t..... More

Print this item

  Traveller salesman backtracking
Posted by: synced - Oct-21-2017, 09:20 PM - Forum: Homework - Replies (3)

So I have the traveller salesman (backtracking) with a cost on the edges (I consider a full graph with 0 on the main diagonal and a cost in the rest, ..... More

Print this item

  matplotlib textbox
Posted by: kiyoshi7 - Oct-21-2017, 03:41 PM - Forum: General Coding Help - Replies (3)

[nodisplay]please give a runnable sample of your code with the full error text or a clear description of the problem

Please use python tags for cod..... More

Print this item

  input error help
Posted by: Cremno - Oct-21-2017, 02:23 PM - Forum: General Coding Help - Replies (2)

[nodisplay]please give a runnable sample of your code with the full error text or a clear description of the problem


Please use python tags for c..... More

Print this item

  How to get directory information with pathlib
Posted by: Larz60+ - Oct-21-2017, 12:18 PM - Forum: Code sharing - No Replies

Using pathlib, there are quite a few examples of how to get directory
information on root path, but the same methods don't always
work on derived pa..... More

Print this item

  error in import numba
Posted by: Sara - Oct-21-2017, 11:23 AM - Forum: General Coding Help - Replies (1)

When I am trying to run python file .py that uses numba it gives me the below error
[python] Traceback (most recent call last):
File "C:\Myfile..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  C++ program embedding Pyt... 10 hours ago Alexandros Gribouillis General Codin...
  403 Error 09-17, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
Most views
  The best Prog... 576135
  Tutorial Requ... 497683
  Web Scraping ... 440081
  Newbie with P... 383891
  New Users Int... 366441
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+ 12089
buran 8174
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Yesterday
AstoundzSEO Yesterday
tobey12 Yesterday
alexguemez 09-17
Shadab 09-17

User Panel Messages

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