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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,838

Full Statistics

Online Users
There are currently 45 online users.
» 1 Member(s) | 40 Guest(s)
Bing, Apple, Google, deanhystad

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
4 minutes ago
» Replies: 10
» Views: 193
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 3
» Views: 103
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 192
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 368
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 123
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 254
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 402
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 152
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,647
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 257

 
  grayscale image processing
Posted by: zyb1003 - Oct-24-2017, 07:34 PM - Forum: Data Science - Replies (10)

Hello guys,

I am rookie to python, and have trouble in image processing.

Now I have an image showing a beam spot, only the beam spot is white ..... More

Print this item

  Regular Expressions with inputs
Posted by: MethodRunner147 - Oct-24-2017, 06:49 PM - Forum: General Coding Help - Replies (1)

Hi, I am trying to let a user input a username that is 8 characters long . Then if they enter it incorrectly, display an error message and ask them to..... More

Print this item

  NumPy array; selecting the a single column
Posted by: econmajor - Oct-24-2017, 04:25 PM - Forum: Data Science - No Replies

I have a numpy array with data. How do I select the first column

my_array =numpy.array([[1,2,3], [1,2,3]])
I can get the firs..... More

Print this item

  Insert data to SQL through pymysql and flask
Posted by: iainstott - Oct-24-2017, 01:44 PM - Forum: Web Scraping & Web Development - Replies (3)

Wonder if someone can help as I'm going round in circles on something that should be simple.

All I am trying to do is input some data from a form i..... More

Print this item

  Decode data of udp connection
Posted by: deividnastri - Oct-24-2017, 01:03 PM - Forum: Networking - Replies (2)

Hi, i am receiving data from a UDP connection and don't know how decode this.

Code where i receive the data:

[python]
import socket

# Set up..... More

Print this item

  How to define a method in a class
Posted by: 1885 - Oct-24-2017, 12:57 PM - Forum: GUI - Replies (2)

I copied this code from zetcode.com
What I want to do is call a method dec3hex2 that returns a string in the form of #000000
I have the dec to hex ..... More

Print this item

  Begginer - How to choose a server to run my Python script with MongoDB?
Posted by: Mapl - Oct-24-2017, 12:40 PM - Forum: Web Scraping & Web Development - Replies (1)

I've run my Python script on my local desktop. It mainly builds a dataset by scraping data from a few websites, and saves the data to my local MongoDB..... More

Print this item

  List out of range error
Posted by: juniorcoder - Oct-24-2017, 12:38 PM - Forum: General Coding Help - Replies (3)

Hi guys,
N=3 (will be 2 at most in the loop I want to create)
T=5 (will start from 2 in the loop I want to create)
I want to print:
x(1)(2),I(1)(1)
..... More

Print this item

  Defining an fsolve function to call later
Posted by: hegdep - Oct-24-2017, 12:09 PM - Forum: General Coding Help - Replies (1)

[python]
def myFunction_2(p,skewness,kurtosis):
x=p[0]
y=p[1]
z=p[2]
f=empty((3))
f[0]=pow(x,2)+pow(y,2)+6*x*y+15*pow(z,..... More

Print this item

  checking for matches between lists
Posted by: henrik0706 - Oct-24-2017, 10:38 AM - Forum: General Coding Help - Replies (2)

Hey guys

so here's the problem
I have 2 lists:

numbers = [1,2,3,4,5,6,7,8,9]
given = [1,1,2]
how do i find the amount of eleme..... More

Print this item

  Converting pseudocode to Python
Posted by: qwertyK - Oct-24-2017, 10:14 AM - Forum: Homework - Replies (3)

hi there,

First python project, need to convert the psuedocode which I wrote below to python. Don't actually need the program to work just need the..... More

Print this item

  Battleships Program must display how many ships are left after each turn
Posted by: FnaticPutin - Oct-24-2017, 09:37 AM - Forum: Game Development - Replies (1)

Hello everyone. This is my Battleships program for python. I currently want to make the program to display how many ships are left after each turn. Th..... More

Print this item

  Numpy Help
Posted by: BlackHeart - Oct-23-2017, 11:28 PM - Forum: Web Scraping & Web Development - Replies (6)

Hey everyone,

This is my first time posting on this forum. I am very very new to python, so please bare with me. I'll try and give as much accurate..... More

Print this item

  Tkinter box model
Posted by: Sebastian_Adil - Oct-23-2017, 08:17 PM - Forum: GUI - Replies (2)

In Tkinter there are six of standard options (-width -height -padx -pady -borderwidth -background) which can be gathered together in a flowchart and f..... More


Attached Files

Thumbnail(s)
   
Print this item

  enumerate and output control
Posted by: atux_null - Oct-23-2017, 07:56 PM - Forum: Homework - Replies (7)

[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

  Simple cli menu quits on selection
Posted by: pamamolf - Oct-23-2017, 06:50 PM - Forum: General Coding Help - Replies (19)

Hello,

First day on Python :)

I was looking to create a simple cli sample menu for my Ubuntu 17.10 and default Python 3.6.3 and i end up to this one..... More

Print this item

  Subtitle Downloader (Subdb and Opensubtitles)
Posted by: hbknjr - Oct-23-2017, 04:50 PM - Forum: Code sharing - No Replies

I recently discovered opensubtitle API. So here's a script that uses SubDB and OpenSub..... More

Print this item

  print a * pyramid
Posted by: drogers10940 - Oct-23-2017, 04:16 PM - Forum: Homework - Replies (5)

[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

  SQL Alchemy, database does not work
Posted by: Peter_EU - Oct-23-2017, 03:18 PM - Forum: Web Scraping & Web Development - Replies (3)

Hallowings,

I am trying to make my very first database app according to this tutorial - https://www.youtube.com/watch?v=0FsvqwRh...PLXmMXHVSv..... More

Print this item

  Red color enhancement
Posted by: OmarSinno - Oct-23-2017, 01:19 PM - Forum: General Coding Help - Replies (2)

So I wrote this code and my goal is to increase the red intensity by 50% in every pixel, help?
[python]from PIL import Image
im= Image.open('monkey.jp..... More

Print this item

  PIN Number Tool
Posted by: jgarrido - Oct-23-2017, 01:14 PM - Forum: General Coding Help - No Replies

Good morning everyone,

I'm kinda new to Python but have been able to create a lot of tasks that allow me to automate certain functions that we used..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 4 minutes ago paul18fr deanhystad General Codin...
  Please guide me to comple... 2 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578953
  Tutorial Requ... 510403
  Web Scraping ... 441966
  Newbie with P... 385988
  New Users Int... 376983
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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