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,282
» Latest member: MattCarters
» Forum threads: 38,792
» Forum posts: 175,873

Full Statistics

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

Latest Threads
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: noisefloor
38 minutes ago
» Replies: 3
» Views: 76
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 46
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,476
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 131
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 56
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,053
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,295
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 355
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 196
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 259

 
  Functions, skip an arugment
Posted by: SpongeB0B - Mar-27-2020, 10:41 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

How can we skip functions argument in Python

For example I have this function

[python]
def F_Three(a,b=2,c=10):
print((a/b..... More

Print this item

  change normal insertionsort into 2 dimension insertionsort
Posted by: dezed - Mar-27-2020, 10:24 AM - Forum: Homework - Replies (2)

excuse me, i wanna ask.
how to change this code into 2Dimension insertionsort code?
my teacher said it only replace 1 line code

[python]
def ins..... More

Print this item

  Tkinter:Unable to bind and unbind function with a button
Posted by: shallanq - Mar-27-2020, 09:39 AM - Forum: GUI - Replies (2)

I'm having trouble binding and unbinding a function(using 2 buttons) to display a keyboard.

I basically want keyboard()to be hidden first, but when..... More

Print this item

  scraping from a website that hides source code
Posted by: PIWI_Protein - Mar-27-2020, 09:32 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello Pythoners,

I want to make python get some data from this website: https://tritrypdb.org/


The idea is to then implement that into excel, ..... More

Print this item

  Iterate through all files in a folder and make simple calculation
Posted by: danielappleton - Mar-27-2020, 09:19 AM - Forum: General Coding Help - Replies (2)

Hi,

I want to iterate through a number of .xlsx files in a folder and make a simple calculation for each of the rows in each file. I want to subtra..... More

Print this item

  Not able to crack a simple visualization – missing something basic – plz guide
Posted by: darpInd - Mar-27-2020, 07:22 AM - Forum: General Coding Help - Replies (4)

Hello Readers,
I have been trying to get a simple visualization but not able to crack and getting demotivated. Please help!
Objective:- I want to cr..... More

Print this item

  import Tkinter
Posted by: orestgogosha - Mar-27-2020, 05:50 AM - Forum: GUI - Replies (1)

my code:
[python]#!/usr/bin/env python
import Tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
tk.Frame...... More

Print this item

  my own command line option parser
Posted by: Skaperen - Mar-27-2020, 04:14 AM - Forum: News and Discussions - No Replies

i'm creating my own command line option parser function. i might make it into a class but its not that much to configure and i normally never need mu..... More

Print this item

  Guidance on solving an "if else loop" in this small project
Posted by: ando - Mar-27-2020, 03:17 AM - Forum: Homework - Replies (5)

Hi all,

Thank you in advance for giving this a read. I have completed 99.9% of this assignment.
The goal of the program is to ask user to enter '..... More

Print this item

  Finding out what's under the cursor
Posted by: sabresong - Mar-27-2020, 03:06 AM - Forum: GUI - Replies (3)

I'm new to Python, and way out of practice (15+ years out of practice) with any sort of programming. I don't have example code as I'm in the planning ..... More

Print this item

  which type for empty
Posted by: Skaperen - Mar-27-2020, 12:58 AM - Forum: News and Discussions - No Replies

a function/method has an argument that gets a bunch of hashable things, such as strings. it can accept a list or tuple or set or..... More

Print this item

  suggested improvements.
Posted by: Skaperen - Mar-27-2020, 12:06 AM - Forum: News and Discussions - No Replies

str.count(sub[,start[,end]]) should allow a tuple of strings for sub, such that it counts any of the non-ove..... More

Print this item

  Deployment Issues and installing
Posted by: stevemiske - Mar-26-2020, 10:58 PM - Forum: News and Discussions - Replies (1)

I am in a Devops position and I am being sent my first Python application to deploy to servers.

I want to note that our servers are locked down and..... More

Print this item

  Listbox search code partially works
Posted by: chesschaser - Mar-26-2020, 10:49 PM - Forum: GUI - Replies (9)

Hi everyone on the Python Forum!

I have some search code that partially works thanks to a helpful forum post from deanhystad!
I still have a few g..... More

Print this item

  Please help me speed up my script :(
Posted by: mikeak2001 - Mar-26-2020, 10:33 PM - Forum: Code Review - No Replies

Hi,

I recently asked for help in regards to CRC16-CCITT/FALSE checksums.
I had some great advice to try CRCengine.

https://python-forum.io/Thre..... More

Print this item

  pylint question
Posted by: dcollett - Mar-26-2020, 08:49 PM - Forum: General Coding Help - No Replies

Hi, everyone. Here's my short snippet of code:

[python]
""" Module docstring goes here """

class Robot():
""" Class docstring goes here ""..... More

Print this item

  Pass Arguments to Function
Posted by: phillyfa - Mar-26-2020, 07:21 PM - Forum: General Coding Help - Replies (2)

Hello,

The following function creates a connection string to a SQL Server instance. I have another program where all the values are hard-coded int..... More

Print this item

  unique (single) value in dict (or list)
Posted by: 3Pinter - Mar-26-2020, 07:10 PM - Forum: General Coding Help - Replies (5)

Given any random dictionary (or a list doesnt matter), how to ask the dictionary if there is an unique value (so which only occurs once).

{
"1": "..... More

Print this item

  String index out of range - help please
Posted by: DudleyDiccle - Mar-26-2020, 07:01 PM - Forum: General Coding Help - Replies (7)

I'm new to programming btw.
I'm trying to write a program that will take a tuple of a list of toys, a tuple of the base prices for those toys, and ca..... More

Print this item

  Stanza: A Python NLP Library for Many Human Languages, by the Stanford NLP Group
Posted by: buran - Mar-26-2020, 05:35 PM - Forum: News and Discussions - No Replies

A Python NLP Library for Many Human Languages, by the Stanford NLP Group

https://pypi.org/project/stanza/
https://stanfordnlp.github.io/stanza/mod..... More

Print this item

  Formatting Help!
Posted by: DudleyDiccle - Mar-26-2020, 05:03 PM - Forum: General Coding Help - Replies (2)

Hi, I am trying to format the following code so that the stars are all aligned in a column, starting at the same spot, and the same with the months. T..... More

Print this item

  pyMySQL How do I get the row id
Posted by: JayCee - Mar-26-2020, 04:06 PM - Forum: General Coding Help - Replies (3)

Hello everyone,

Greetings from Brazil! I have a simple question: How do I get the row id of records? I need that so I can navigate through the ro..... More

Print this item

  Print date, Time and output to file
Posted by: tpolim008 - Mar-26-2020, 03:09 PM - Forum: General Coding Help - Replies (3)

Hello,
I am very green to python and currently wrote a code to look at a DB, look at the row for a date-time of the last backup. I'm now trying to fig..... More

Print this item

  Issue with def norm in class Vector
Posted by: DimosG - Mar-26-2020, 02:53 PM - Forum: General Coding Help - Replies (4)

Hi guys I am trying to calculate the norm(magnitude) of a Vector using class and when i run the code I get: [error]return math.sqrt(sum( i**2 for i in..... More

Print this item

  __init__ question
Posted by: dcollett - Mar-26-2020, 02:18 PM - Forum: General Coding Help - Replies (10)

Hi, everyone. I'm happy to have found this forum. I believe this is a basic question about __init__, but I haven't been able to find an answer online...... More

Print this item

  New to Python, How does this lambda expression works?
Posted by: Joshh_33 - Mar-26-2020, 01:58 PM - Forum: General Coding Help - Replies (2)

Hi,

I would like to arrange the tuple in ascending order according to the price.
The first one,("Product1") is the name of the ..... More

Print this item

  Matplotlib figure not showing cursor coordinates in the figure window
Posted by: mart79 - Mar-26-2020, 01:48 PM - Forum: GUI - No Replies

I have a figure on my form but, for some reason, it does not show the cursor coordinates.
Does anyone have an idea how to get those in?

Found it: see..... More

Print this item

  PYTesseract Problem
Posted by: gw1500se - Mar-26-2020, 01:35 PM - Forum: General Coding Help - Replies (2)

I've installed PYTesseract but cannot use it. I am getting a traceback that makes no sense to me.
[error]
Traceback (most recent call last):
File..... More

Print this item

  PIP Installation problem with VS Build tools
Posted by: Hanneth - Mar-26-2020, 11:00 AM - Forum: News and Discussions - Replies (1)

Hello,

I got myself the x64 python 3.7.7 version and I got an error message during installation of jsonlib.
From my understanding, pip is using th..... More

Print this item

  Newbie to Python Why does this if statement not work?
Posted by: Wrightys99 - Mar-26-2020, 10:23 AM - Forum: General Coding Help - Replies (5)

Hi

Im new to Python but have programmed in Basic many many years ago.

Im trying to help my daugther with her Python homework, and for the life o..... More

Print this item

  Problem with user defined main menu function
Posted by: stefzeer - Mar-26-2020, 10:21 AM - Forum: General Coding Help - Replies (3)

Hello,

I am writing a little python script to perform various sysadmin tasks. I have defined the main menu where you pick the choice of task to per..... More

Print this item

  How does pyplot know what was plotted by the output of pandas.DataFrame(...).cumprod(
Posted by: codeowl - Mar-26-2020, 10:01 AM - Forum: Data Science - Replies (2)

Hi there,

I am coming from a decade of C# programming to learn python, and trying to wrap my head around how things work.
There seems to be a lot ..... More

Print this item

  Simple cards game
Posted by: blackpanda - Mar-26-2020, 09:47 AM - Forum: General Coding Help - Replies (3)

Please help, I'm new to python and I've been trying to figure this out for HOURS.
I must create a program that follows these rules:

1. The game st..... More

Print this item

  SyntaxError: invalid syntax
Posted by: windows11 - Mar-26-2020, 09:08 AM - Forum: General Coding Help - Replies (5)

Hello guys, I dont understand why this is not working.

If I use this, works


[python]

def my_function(i):
while i<a:
print(f[i])
i=..... More

Print this item

  Python zeep offline installation on RHEL
Posted by: akinmhmt - Mar-26-2020, 09:04 AM - Forum: General Coding Help - No Replies

Hi All,

I need to install Python zeep library on RHEL. I have zeep.tar.gz file. I need to install it offline because I don't have internet access ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 38 minutes ago drakhsin noisefloor Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579247
  Tutorial Requ... 512082
  Web Scraping ... 442177
  Newbie with P... 386289
  New Users Int... 379488
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21
OtiliaBecker 11-21

User Panel Messages

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