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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 29 Guest(s)
Bing, Google, Apple, Facebook, Mojeek, snippsat

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 3
» Views: 150
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 151
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 118
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 162
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 347
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 66
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 110
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 353
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 203
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 313

 
  Decorator inhibits execution of function if non-None parameter not supplied
Posted by: league55 - Feb-25-2018, 03:30 PM - Forum: Code sharing - Replies (1)

If a function is supposed to receive a parameter other than None, but for whatever reason the value of the parameter is None, this decorator will inhi..... More

Print this item

  Read CSV data into Pandas DataSet From Variable?
Posted by: Oliver - Feb-25-2018, 02:00 PM - Forum: Data Science - Replies (7)

[python] url = "http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
the_names = ['sepal-length', 'sepal-width', 'petal-length',..... More

Print this item

  How to check if user entered string or integer or float??
Posted by: prateek3 - Feb-25-2018, 12:56 PM - Forum: General Coding Help - Replies (5)

I am solving a basic example using while loop in which user enters a number and program prints a countdown from that number to zero. But the catch is ..... More

Print this item

  Put specific emails in an Excel/.csv
Posted by: CaptainBlueballs - Feb-25-2018, 10:32 AM - Forum: General Coding Help - No Replies

Hi humans & programming birdies!

After 1,5 Python courses on Udemy I would like to start my own little project. But I could use a little help to ge..... More

Print this item

  best pythonic one-time loop
Posted by: Skaperen - Feb-25-2018, 07:19 AM - Forum: General Coding Help - Replies (2)

i use a one-time loop to surround code where i need a quick way out of a section of code. that way a break is somewhat like a [inlin..... More

Print this item

  Brute Force Pad Lock Guesser
Posted by: RedSkeleton007 - Feb-25-2018, 06:23 AM - Forum: General Coding Help - Replies (4)

I'm trying to learn how to have more control over increments, but I have a delema (see comments in following code):

[python]
#!/usr/bin/env python..... More

Print this item

  How to proceed?
Posted by: scatterinc - Feb-25-2018, 03:36 AM - Forum: GUI - Replies (4)

The below is my code that works perfect when i post it to python idle and run it.

However i am having difficulty doing the following:

How do it ..... More

Print this item

  Create a program that draws a box
Posted by: KaioKen - Feb-25-2018, 02:13 AM - Forum: Homework - Replies (6)

Detailed description of your problem, including steps to reproduce it:
This is for a homework assignment that I have already missed the deadli..... More

Print this item

  running other older versions of python
Posted by: Skaperen - Feb-25-2018, 01:58 AM - Forum: News and Discussions - Replies (20)

i'd like to run other, older, versions of Python to test code that is intended to be version agnostic so that it is known how wide a range of Python v..... More

Print this item

  Need help with a simple AHK script
Posted by: Stabu - Feb-24-2018, 08:27 PM - Forum: General Coding Help - No Replies

Hi. So I take a lot of surveys and some pages have like 200 questions to answer with bubbles. I want to create a simple loop script in AHK that will d..... More

Print this item

  setting parameters for functions and nested functions
Posted by: mepyyeti - Feb-24-2018, 06:03 PM - Forum: General Coding Help - Replies (5)

I feel I'm shaky on understanding the interplay between passing variables through functions (outside of classes)...Basically IDK when to use foo() vs ..... More

Print this item

  Moving chess piece using mouse
Posted by: reepio13 - Feb-24-2018, 05:47 PM - Forum: Game Development - Replies (7)

Hi,(note: I have a general knowledge on programming python and pygame as I do A-Level computer science)

I am working on a project of programming che..... More

Print this item

  using function through exec()
Posted by: kiyoshi7 - Feb-24-2018, 05:02 PM - Forum: General Coding Help - Replies (9)

Hi, I'm trying to call a function defined out of exec() within the exec(), but I'm getting an error saying that the fuction I'm trying to run is not f..... More

Print this item

  Using command prompt on windows 10
Posted by: sylas - Feb-24-2018, 12:45 PM - Forum: Bar - Replies (4)

Hi all ! I am a beginner with windows, and I am unable to see what a directory contains. That is I look for the equivalent of "ls" on linux. Another t..... More

Print this item

  parsing text with ply (lex/yacc) tool
Posted by: bb8 - Feb-24-2018, 12:30 PM - Forum: General Coding Help - Replies (2)

i need to parse a file which contains some kind of data. i've looked at tutorials but i'm a little bit confused how to apply it to my case.

so the fi..... More

Print this item

  If statements - Shell Word-based RPG
Posted by: PythonHax_3 - Feb-24-2018, 11:21 AM - Forum: Game Development - Replies (2)

[python]def start_game():
import sys
import time
import random
import math
print('''Welcome to Python World.
This is a word based RPG ..... More

Print this item

  password repository script using csv for site, pw repository
Posted by: mepyyeti - Feb-24-2018, 07:45 AM - Forum: General Coding Help - No Replies

This is my first (self-contained) python script with (what I feel is) a practical use. It basically (1.) allows you to look up a password (via a csv ..... More

Print this item

  Purpose of the keyword "pass"
Posted by: Tim - Feb-24-2018, 07:33 AM - Forum: General Coding Help - Replies (3)

Hello Pythonians,
What I understood about the keyword "pass", is that it works exactly like the keyword "continue", except it implements the remaini..... More

Print this item

  [cocos2d] how to use the second display
Posted by: largecat - Feb-24-2018, 06:37 AM - Forum: General Coding Help - No Replies

I'm now using cocos2d to make some animation, and have two monitors,
I want to use the second monitor to display,
but the code cannot work,

first..... More

Print this item

  print values
Posted by: volcano - Feb-24-2018, 05:13 AM - Forum: General Coding Help - Replies (3)

As per my understanding if we want to add two strings and print then we should use comma .

e.g print('abc','def') = > this will give abcdef

But ..... More

Print this item

  Python data prep help for confidence interval
Posted by: eslearner - Feb-24-2018, 05:13 AM - Forum: General Coding Help - No Replies

Hi
I am getting my feet wet with Python 2.7 and would request help with any code logic that can help prep data for confidence interval.

Problem : ..... More

Print this item

  is this any good?
Posted by: Skaperen - Feb-24-2018, 04:37 AM - Forum: News and Discussions - Replies (3)

has anyone seen this to know if it is any good?

https://dbader.org/python-tricks

Print this item

  Class and calling a method
Posted by: Zatoichi - Feb-24-2018, 04:32 AM - Forum: Homework - Replies (3)

[python]

class student:

def __init__(self, first_name, last_name, student_id, year):
self.first_name = first_name
self..... More

Print this item

  Someone please look at this and tell me what i'm doing wrong
Posted by: NGOtaku - Feb-24-2018, 04:28 AM - Forum: Homework - Replies (2)

i put this into the UI:

def volume(h, r):
    return (h*(r**2)*(22/7))/3
print volume(4, 4)


but 64 is returned but nothing is ..... More

Print this item

  Help with parameter variables losing value
Posted by: kofipython - Feb-24-2018, 03:09 AM - Forum: General Coding Help - Replies (4)

Hello All,

I need help. Can someone tell me why I am not getting any results. Look like I am losing the variables values.
Here is my code.

# Gl..... More

Print this item

  Cozmo
Posted by: Hermiedug - Feb-23-2018, 10:56 PM - Forum: General Coding Help - No Replies

Hi all, a new member here and trying to learn python using a little robot called CozmoCozmo robot web site..... More

Print this item

  storing input as a integer help
Posted by: faputting - Feb-23-2018, 06:30 PM - Forum: General Coding Help - Replies (1)

import random
def function1():
a = random.randint(1,50)
b = random.randint(1,50)
c = a + b
print('what is',a,'plus',b,'?')
d..... More

Print this item

  An email with inline jpg cannot be read by all email clients
Posted by: fpiraneo - Feb-23-2018, 05:05 PM - Forum: General Coding Help - Replies (4)

I'm writing a simple script to send email with inline picture in Python 3.5; because I'm a beginner I take the example on the official doc: [url=https..... More

Print this item

  Need help to copy content of the text file into the body of the email as html
Posted by: mohaneraj - Feb-23-2018, 05:04 PM - Forum: General Coding Help - No Replies

Guys
I have 2 text files created by another scripting program....I want to copy those the content of the text file into the body of the html file as ..... More

Print this item

  hi new at python , trying to get urls from website
Posted by: dviry - Feb-23-2018, 05:01 PM - Forum: Web Scraping & Web Development - Replies (6)

hello,
i'm new at python ,and i'm trying to get urls from website and write it to csv file


this is my code :

[python]
from urllib.request im..... More

Print this item

  Threading - RPi server UDP
Posted by: KoSik - Feb-23-2018, 04:48 PM - Forum: Networking - Replies (3)

Hello,

I am writing a program with a simple UDP connection. The program starts and when it receives data from the server, it turns off. I need to r..... More

Print this item

  To create a folder with given key name and paste contents from clipboard into it
Posted by: sibjac - Feb-23-2018, 04:10 PM - Forum: General Coding Help - Replies (3)

I got stuck here... This is working fine up to this... I was trying to make it create a folder named same as the "key" and paste the contents of th..... More

Print this item

  Use custom root in wx.GenericDirCtrl
Posted by: 1marc1 - Feb-23-2018, 03:43 PM - Forum: GUI - Replies (4)

Hi Team,

I am playing around with GenericDirCtrl and would like to know how I can set a custom directory as the root. For example, the directory tr..... More

Print this item

  parent/add and child/div
Posted by: PyMan - Feb-23-2018, 02:15 PM - Forum: General Coding Help - Replies (1)

can i use my parent class addition answer in child class to do division and how ?
[python]
class a:
def __init__(self,x):
self.x=x
..... More

Print this item

  what is difference between python CGI and webapplication
Posted by: kchandel - Feb-23-2018, 01:40 PM - Forum: Web Scraping & Web Development - Replies (2)

what is difference between python CGI and webapplication

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 3 hours ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579091
  Tutorial Requ... 511219
  Web Scraping ... 442065
  Newbie with P... 386125
  New Users Int... 378388
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 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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