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,673
» Latest member: techthiru
» Forum threads: 38,648
» Forum posts: 175,059

Full Statistics

Online Users
There are currently 463 online users.
» 0 Member(s) | 457 Guest(s)
Bing, Google, Yandex, Baidu, Apple

Latest Threads
Sourcetrail project
Forum: News and Discussions
Last Post: paul18fr
17 minutes ago
» Replies: 0
» Views: 4
replace or remove text fr...
Forum: General Coding Help
Last Post: Gribouillis
26 minutes ago
» Replies: 17
» Views: 1,000
Deciding on a Macbook Pro...
Forum: Bar
Last Post: techthiru
2 hours ago
» Replies: 0
» Views: 33
Pylance: "... is not a kn...
Forum: General Coding Help
Last Post: MvGulik
4 hours ago
» Replies: 2
» Views: 91
While loop is terminating...
Forum: Homework
Last Post: Plyth
Yesterday, 01:49 AM
» Replies: 2
» Views: 254
PythonPath file
Forum: General Coding Help
Last Post: Pedroski55
Jul-04-2025, 10:56 PM
» Replies: 7
» Views: 19,825
Python Install Mager Help
Forum: News and Discussions
Last Post: snippsat
Jul-04-2025, 09:43 AM
» Replies: 5
» Views: 420
RemoTe server operation w...
Forum: General Coding Help
Last Post: mario17
Jul-04-2025, 07:18 AM
» Replies: 4
» Views: 345
Hide CLI while grabbing i...
Forum: GUI
Last Post: Gribouillis
Jul-03-2025, 08:12 AM
» Replies: 1
» Views: 193
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jul-02-2025, 05:41 PM
» Replies: 4
» Views: 712

 
  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

  calculate distance based on gps coordinates
Posted by: atux_null - Oct-21-2017, 09:59 AM - Forum: Homework - Replies (1)

[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

  print logarithms todifferent base
Posted by: atux_null - Oct-21-2017, 09:43 AM - Forum: Homework - 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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Sourcetrail project 17 minutes ago paul18fr paul18fr News and Disc...
  replace or remove text fr... 26 minutes ago Curbie Gribouillis General Codin...
  Deciding on a Macbook Pro... 2 hours ago techthiru techthiru Bar
  Pylance: "... is not a kn... 4 hours ago MvGulik MvGulik General Codin...
  While loop is terminating... Yesterday, 01:49 jumpsworthnow Plyth Homework
  PythonPath file 07-04, 22:56 JohnRLaw Pedroski55 General Codin...
  Python Install Mager Help 07-04, 09:43 bowens1983 snippsat News and Disc...
  RemoTe server operation w... 07-04, 07:18 mario17 mario17 General Codin...
  [WxPython] Hide CLI while... 07-03, 08:12 Winfried Gribouillis GUI
  Venv - Python Virtual Env... 07-02, 17:41 DanneA Larz60+ General Codin...
  [Tkinter] textbox compare... 07-02, 13:40 dmac6809 deanhystad GUI
Most views
  The best Prog... 572437
  Tutorial Requ... 485321
  Web Scraping ... 436970
  Newbie with P... 379824
  Thread remain... 351278
Most reputation
buran 581
snippsat 507
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+ 12071
buran 8173
snippsat 7345
deanhystad 6846
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
techthiru Today
skylarkuk Today
OLHOSANTOTM Yesterday
viratsolanki Yesterday
chaless Yesterday

User Panel Messages

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