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,416
» Latest member: F_S
» Forum threads: 38,828
» Forum posts: 176,069

Full Statistics

Online Users
There are currently 27 online users.
» 1 Member(s) | 22 Guest(s)
Bing, Google, Applebot, Gribouillis

Latest Threads
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
1 hour ago
» Replies: 4
» Views: 362
python re.finditer return...
Forum: General Coding Help
Last Post: snippsat
3 hours ago
» Replies: 7
» Views: 415
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Yesterday, 04:31 PM
» Replies: 14
» Views: 746
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Yesterday, 12:47 PM
» Replies: 12
» Views: 7,688
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Yesterday, 06:35 AM
» Replies: 4
» Views: 662
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 992
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,588
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Jan-02-2026, 12:38 PM
» Replies: 2
» Views: 708
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,332
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 552

 
  Dont know How
Posted by: papampi - Oct-23-2017, 01:08 PM - Forum: General Coding Help - Replies (2)

Hi
A bash script helper create a file for my python script posted here
..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Exponential Number Conver... 1 hour ago Tuurbo46 DeaD_EyE General Codin...
  python re.finditer return... 3 hours ago arbiel snippsat General Codin...
  Possible bug found, pleas... Yesterday, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... Yesterday, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... Yesterday, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  a function to watch files 01-02, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
Most views
  The best Prog... 580701
  Tutorial Requ... 521792
  Web Scraping ... 442889
  New Users Int... 387794
  Newbie with P... 387115
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
F_S Today
cruisesfares Today
aalexfracesoz1783 Yesterday
Jessicaadams Yesterday
alexajames Yesterday

User Panel Messages

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