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,964
» Latest member: Edzed4431
» Forum threads: 38,730
» Forum posts: 175,545

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 32 Guest(s)
Bing, Google, Mojeek, Facebook, AOL, AOL

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
42 minutes ago
» Replies: 2
» Views: 26
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
6 hours ago
» Replies: 1
» Views: 453
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
11 hours ago
» Replies: 4
» Views: 1,991
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,554
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 457
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 912
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 941
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,210
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,826
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,863

 
  Getting the key for the highest value in a dict - how does this code work?
Posted by: rogfrich - Nov-25-2018, 10:39 PM - Forum: General Coding Help - Replies (4)

Hi everyone.

I wrote a little script to find the most recently-modified folder inside a particular folder (on Mac OS 10.14)

Most of the code be..... More

Print this item

  code execution after event
Posted by: shift838 - Nov-25-2018, 09:49 PM - Forum: General Coding Help - Replies (3)

i am very new to Python. I'm a .NET programmer but want to get into Python so I can write cross-platform code that will work on Windows as well as Li..... More

Print this item

  Help with pip install
Posted by: wardogelwood - Nov-25-2018, 08:25 PM - Forum: General Coding Help - Replies (4)

I have been working with a package called openpyxl which I installed last week.
My system is windows 10
This morning, all code with "import openpyxl..... More

Print this item

  a GUI for rsync
Posted by: itaybardugo - Nov-25-2018, 07:42 PM - Forum: Code sharing - Replies (2)

hi guys
just done with my first opensource python project, its a GUI for rsync.
it will be nice if you guys check it on git:
..... More

Print this item

  PyQt Login and Sqlalchemy
Posted by: rarevesselt - Nov-25-2018, 06:57 PM - Forum: GUI - Replies (1)

I am trying to check if username and password is found in the database.I am getting data from login.py.I am not getting the logic right. Any help will..... More

Print this item

  Value Iteration/ Q-Iteration
Posted by: Annaconda - Nov-25-2018, 05:22 PM - Forum: Homework - No Replies

Hello,

I have to implement value iteration and q iteration in Python 2.7.
This code is given:
[python]
import numpy as np
import mdp as util
..... More

Print this item

  Running remote code?
Posted by: MuntyScruntfundle - Nov-25-2018, 04:54 PM - Forum: General Coding Help - Replies (1)

Hi there.

I'm sat here wondering if there is any reason one shouldn't run code remotely.

If my situation is: I have many unix clients and a unix..... More

Print this item

  The twelfth root of a matrix
Posted by: Arduinol - Nov-25-2018, 03:43 PM - Forum: Data Science - Replies (9)

[Image: 181125043338927257.png.html]

Hello everybody,

I need some help as I'm trying desperately to calculate the..... More

Print this item

  Web server for android and ios
Posted by: Aashuraa - Nov-25-2018, 03:18 PM - Forum: Web Scraping & Web Development - No Replies

Hi
How is web server on python for android ios?

Print this item

  Test Normality in Python
Posted by: StevenZut - Nov-25-2018, 02:48 PM - Forum: Data Science - Replies (3)

I got the following numbers:

498 50 67 1069 22 145 182 348 580 906 753 23 4 782 818 26 85 863 762 791 319 94 17 650 969 752 423 720 26 804 640 5 13..... More

Print this item

  Scheduled lift
Posted by: ambush - Nov-25-2018, 02:17 PM - Forum: Homework - Replies (1)

hi Smile

how to get started to design a program for a lift and visualize it.

for example

no. of floors is 4

no. of users is 26

fun..... More

Print this item

  Add Photo in Python
Posted by: adninqasifa - Nov-25-2018, 12:09 PM - Forum: General Coding Help - Replies (4)

Helloo,

Helloo, I have some question, i try to run simple Program for add photos in IDLE Python but not working. It is because to large or somethi..... More

Print this item

  Python 2.7 LooseVersion version comparison unexpectedly fails
Posted by: kwutzke - Nov-25-2018, 09:21 AM - Forum: General Coding Help - Replies (5)

Hello all,

I have written some tests for LooseVersion from which some seem to be failing unexpectedly.

Code:
[python]
from distutils.version i..... More

Print this item

  Web host company recommendations
Posted by: pcsailor - Nov-25-2018, 03:19 AM - Forum: Bar - Replies (8)

Hello,

I'm not finding much info here on web hosting companies known for their strong support of python websites. Have I missed the discussion?
..... More

Print this item

  difference between today, and today variables
Posted by: nmrt - Nov-25-2018, 02:41 AM - Forum: General Coding Help - Replies (2)

Hi All,

I want to know what is the difference between variables " today," and "today" in the below example. First option is giving output in date for..... More

Print this item

  pyad time conversion error (plus solution)
Posted by: PapaZod - Nov-25-2018, 01:58 AM - Forum: General Coding Help - Replies (2)

Hi all,

While learning how to use the pyad module, I came across and odd situation. I was playing with AD timestamps and one of them returned an ac..... More

Print this item

  Screenshot of specific window
Posted by: kainev - Nov-24-2018, 09:20 PM - Forum: General Coding Help - Replies (10)

Hi,

I have a program that needs to take an image of a small section of another program at 29.97 fps. Currently I'm using mss and manually specifyin..... More

Print this item

  Making list empty after return in function
Posted by: dan789 - Nov-24-2018, 07:04 PM - Forum: General Coding Help - Replies (10)

Hello, I have one trouble in my program I´m currently working on. I need to make a function, which flatten a list whom items can contain lists again, ..... More

Print this item

  Need help with this code
Posted by: jamshaid1997 - Nov-24-2018, 06:01 PM - Forum: General Coding Help - Replies (1)

[python]
# 1. Add pytsk3 module
import pytsk3

# 33. Add datetime
import datetime

# 2. Prompt the user to input the name of the image file
image_file..... More

Print this item

  Wierd file type problem
Posted by: Larz60+ - Nov-24-2018, 05:44 PM - Forum: Web Scraping & Web Development - Replies (4)

This is wierd. I don't see the problem.
I am passing a posix path to a module that I have been using in the same way for months, and now all of a sud..... More

Print this item

  Help with ctypes and "c_int*"
Posted by: Jstechg - Nov-24-2018, 03:34 PM - Forum: Data Science - Replies (1)

I am python beginner and I am trying to run a simple python program that call a c function using ctypes
on a linux Ubuntu PC.

It is based on web e..... More

Print this item

  Flickr open data - making trajectories
Posted by: CroExplorer - Nov-24-2018, 02:55 PM - Forum: Homework - Replies (2)

Hello all, I am quite new with programming (I have some Python knowledge) and for my project at the University I need to do already some advanced stuf..... More

Print this item

  Json data validation
Posted by: amar - Nov-24-2018, 01:40 PM - Forum: General Coding Help - Replies (1)

Hi ,

I have json file like below
[python]
{
"fieldname" :{ "name" :"str",
"age" : 13
"add" : "str"
..... More

Print this item

  auto-py-to-exe with unusual directory structure
Posted by: krow4869 - Nov-24-2018, 11:04 AM - Forum: General Coding Help - Replies (3)

So I have a fairly large python project with 262 files across 25 folders. The program starts at C:/somepath/main/main/main.py. Given that I have two d..... More

Print this item

  TypeError: 'method' object is not subscriptable
Posted by: ayaz786amd - Nov-24-2018, 09:41 AM - Forum: Data Science - Replies (1)

Hi

The code is:
[python]import pandas as pd
import quandl
import math

df = quandl.get('FINRA/FORF_TLLTD')

df['PCT']= df['ShortVolume']/df[..... More

Print this item

  random number
Posted by: anasa - Nov-24-2018, 08:30 AM - Forum: General Coding Help - Replies (2)

Hi!
I wonder how the program can find a random number.

Print this item

  function defs in decision code body
Posted by: Skaperen - Nov-24-2018, 05:26 AM - Forum: News and Discussions - Replies (2)

i have been putting many function defs in decision bodies yo decide which version of a function to define. most cases involve [u]testing the p..... More

Print this item

  Animating Random Walk
Posted by: Excelsiscelia - Nov-24-2018, 03:25 AM - Forum: General Coding Help - Replies (2)

Hello. I am trying to animate this very simple 2D random walk program. However, I am not sure what the FuncAnimation function is suppose to do and why..... More

Print this item

  How to assign a found regex expression to a variable
Posted by: Pedroski55 - Nov-24-2018, 03:14 AM - Forum: General Coding Help - Replies (2)

When I try to assign the regex expression I search for to a variable, I get this:

[quote]>>> studentnrRegex = re.compile(r'(18\d\d\d\d\d\d\d\d)')
..... More

Print this item

  Need help with the program its not working
Posted by: jamshaid1997 - Nov-24-2018, 02:57 AM - Forum: General Coding Help - Replies (1)

[python]
#!/usr/bin/env python3

# Simple Calculator

# Function to subtract
def subtract(x, y):
return int(x) - int(y)

# Function to multiply
def..... More

Print this item

  fibonacci ***Time limit exceeded***
Posted by: frequency - Nov-24-2018, 02:49 AM - Forum: General Coding Help - Replies (18)

[PYTHON]
def fib(number):
if number==0:
return 0
elif number==1:
return 1
else:
return fib(number-1)+fib(number-2)
..... More

Print this item

  panda, excel - script pauses and doesn't continue running, no error message
Posted by: william - Nov-24-2018, 12:57 AM - Forum: Data Science - Replies (1)

Hi, I'm having some trouble with a script I created to essentially run down an excel column, and if it found a particular string to replace that strin..... More

Print this item

  tkinter questions--- part 1
Posted by: ironsheep - Nov-23-2018, 10:25 PM - Forum: GUI - Replies (4)

Why is it that when I put

from tkinter import *
tk=Tk()
canvas=Canvas(tk, width=500,height=550)
tk.title("stuff")
A small s..... More

Print this item

  Mentor wanted
Posted by: EmilySenechal - Nov-23-2018, 08:18 PM - Forum: Bar - Replies (2)

Hi, I don't know if its okay to ask this kind of thing on the python forum but I could really use a mentor from now until late January. I'm currently ..... More

Print this item

  Saving PyTorch model
Posted by: kiton - Nov-23-2018, 04:52 PM - Forum: Data Science - Replies (3)

Hello dear forum members,

I am following the example of binary classification problem provided by Numerai competition (https://www.kaggle.com/solom..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 42 minutes ago tester_V tester_V General Codin...
  My goal to be hired worki... 6 hours ago GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 11 hours ago arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
Most views
  The best Prog... 577189
  Tutorial Requ... 500171
  Web Scraping ... 440893
  Newbie with P... 384905
  New Users Int... 369166
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+ 12089
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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