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,941
» Latest member: Noya_Yonatan
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 43 Guest(s)
Google, Bing, AOL, AOL, Applebot

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: bowlofred
1 hour ago
» Replies: 2
» Views: 141
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,377
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 802
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,655
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,149
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,663
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,476
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,666
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,590
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,768

 
  Why won't this user created function work?
Posted by: Evyeniarocks - Feb-26-2018, 01:28 AM - Forum: General Coding Help - Replies (5)

This is the code I wrote, but when it prints the message at the end, it prints the original input as if it had not gone through the string function. W..... More

Print this item

  3Blue1Brown high quality Math/Physics contend
Posted by: snippsat - Feb-25-2018, 07:18 PM - Forum: News and Discussions - Replies (4)

His videos is some of the best i have seen explaining Math/Physics related contend.
Take a look at U[url=https://python-forum.io/thread-8557.html]..... More

Print this item

  Exercise 20, Learn Python 3 the Hard Way
Posted by: Dixon - Feb-25-2018, 06:06 PM - Forum: General Coding Help - Replies (6)

This code doesn't work as Zed Shaw says it should in his book. After the rewind the first call to print does it's job, sort of, (random characters b..... More

Print this item

  Working with lists homework (2)
Posted by: codellino - Feb-25-2018, 05:27 PM - Forum: Homework - Replies (7)

Define 2 lists. The first one must contain the integer values 1, 2 and 3 and the second one the string values a, b and c. Iterate through both lists t..... More

Print this item

  Homework (counting iteration issue)
Posted by: Cardinal07 - Feb-25-2018, 05:10 PM - Forum: Homework - Replies (10)

Below is my Homework assignment. I cannot for the life of me figure out why my while loop
doesn't recognize my condition != 'no'. The loop will not ..... More

Print this item

  See content of modules - not just function names
Posted by: glidecode - Feb-25-2018, 04:50 PM - Forum: General Coding Help - Replies (5)

Hi all

I'd like to see the actual content of various modules. With

dir(modulename)
I can check which functions are included in the mo..... More

Print this item

  Python & Windows XP
Posted by: snb - Feb-25-2018, 04:14 PM - Forum: News and Discussions - Replies (12)

Hi all,

Can someone tell me why Pthon 3.5+ can't be run in XP?

Is it the installation procedure or is it the contents of specific libraries ?
..... More

Print this item

  Not working
Posted by: tommytime555 - Feb-25-2018, 04:02 PM - Forum: General Coding Help - Replies (1)

Hi... I am pulling my hair out trying to figure out why this isn't working. The functions are working fine, but then after running through the functi..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 1 hour ago Anunderling bowlofred General Codin...
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [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
Most views
  The best Prog... 576510
  Tutorial Requ... 498408
  Web Scraping ... 440398
  Newbie with P... 384295
  New Users Int... 367427
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+ 12087
buran 8175
snippsat 7368
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 6
buran 3
Newest members
Noya_Yonatan Today
Saipython555 Today
Anunderling Today
Monir Today
atylerfraces2254 Yesterday

User Panel Messages

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