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,954
» Latest member: Perry
» Forum threads: 38,727
» Forum posts: 175,523

Full Statistics

Online Users
There are currently 32 online users.
» 1 Member(s) | 29 Guest(s)
Bing, Google, Perry

Latest Threads
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
13 minutes ago
» Replies: 0
» Views: 293
extracting data from a us...
Forum: General Coding Help
Last Post: Perry
32 minutes ago
» Replies: 0
» Views: 17
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
2 hours ago
» Replies: 1
» Views: 83
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
10 hours ago
» Replies: 10
» Views: 29,295
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,375
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 248
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 690
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 874
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,135
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,357

 
  quiver plot scaling help
Posted by: StillAnotherDave - Oct-26-2020, 09:12 AM - Forum: Homework - Replies (1)

Hello all,

I have written some code to produce a contour plot (scalar field) and added a quiver plot (vector gradient) to display the gradient:
..... More

Print this item

  Modify XML request on Flask with ElementTree
Posted by: Chris_SK - Oct-26-2020, 08:59 AM - Forum: Networking - No Replies

Hello, I'm python beginner. What I wan't to solve, is modify POST request(xml via cURL) on Flask. Thank's for anny help.

Simple server code:
[python]..... More

Print this item

  Counting the values ​​in the dictionary
Posted by: Inkanus - Oct-26-2020, 08:34 AM - Forum: General Coding Help - Replies (7)

Hi. I have some problem with dictionary. My dictionary has two keys, and each key has three values ​​assigned to it. I would like to count the amount ..... More

Print this item

Photo Insert 0 values in database
Posted by: saljuaid - Oct-26-2020, 07:21 AM - Forum: General Coding Help - Replies (4)

I have this python code. I am using tk and pyodbc. when I have run this code, it inserts 0 value in user_id column in the database even I haven't ente..... More

Print this item

  sqlite
Posted by: Kundan - Oct-26-2020, 05:18 AM - Forum: General Coding Help - Replies (6)

[python]import sqlite3

def convertToBinaryData(filename):
#Convert digital data to binary format
with open(filename, 'rb') as file:
b..... More

Print this item

  Changing Software language in GUI
Posted by: Harshil - Oct-26-2020, 04:14 AM - Forum: General Coding Help - Replies (1)

Hey! Here is my new problem that is necessary that need to solve!!

So i have a pyqt5 or tkinter gui program and now what is problem is that i have ..... More

Print this item

  except condition in not executing
Posted by: MahaEbrahim - Oct-26-2020, 01:53 AM - Forum: Homework - Replies (7)

Dear All,

The program is supposed to calculate the hour rate paid if there is an overtime and continue normally if not.
but the added while loop and ..... More

Print this item

  Convert all actions through functions, fill the dictionary from a file
Posted by: Astone - Oct-25-2020, 11:54 PM - Forum: Homework - Replies (3)

I can't figure out how to make functions for the dictionary in the dictionary, how to pass arguments if there is a string. It would be nice if someone..... More

Print this item

  Active threads
Posted by: metulburr - Oct-25-2020, 11:36 PM - Forum: Board - No Replies

There is a new option in Forums -> Active Threads OR if your in the default theme it is just in the toplink. Options to modify the results listing is ..... More

Print this item

  save button: IndexError
Posted by: Maryan - Oct-25-2020, 11:23 PM - Forum: General Coding Help - Replies (4)

So my app can successfully export to csv file and import it. But when I try to save the data into the DB I'm getting error.
One note: when I import t..... More

Print this item

  corresponding lists
Posted by: Nickd12 - Oct-25-2020, 10:40 PM - Forum: General Coding Help - Replies (2)

I have to lists the idea is I'm going to get the day with calendar and datetime lets say for example that today is Wednesday I would like Wednesday to..... More

Print this item

  WebDriverWait visibility isnt defined
Posted by: gr3yali3n - Oct-25-2020, 07:47 PM - Forum: Web Scraping & Web Development - No Replies

when assigning elements to WebDriverWait do i need to keep the elemet name the same whem calling it with EC? for example
[python]
popUp2 = WebDriver..... More

Print this item

  Having an issue installing pygame
Posted by: JetimLee - Oct-25-2020, 05:09 PM - Forum: Board - Replies (1)

Hello all, I tried installing pygame with pip install pygame and the following error is what I received:

ERROR: Command errored out with exit sta..... More

Print this item

  cant get my elif function to direct me to where i want
Posted by: fvfre - Oct-25-2020, 04:50 PM - Forum: General Coding Help - Replies (1)

i've been trying to make a text based adventure game using python and im stuck. im trying to use an elif command to direct me to a part of the game af..... More

Print this item

  removing item
Posted by: pastakipp - Oct-25-2020, 04:01 PM - Forum: Homework - Replies (3)

I have a question, is it possible to remove a string in a list, if the same string also exists in a file, by using a code?

If yes, how can i do tha..... More

Print this item

  Cannot open url link using urllib.request
Posted by: Askic - Oct-25-2020, 03:46 PM - Forum: General Coding Help - Replies (5)

Hello Python experts,

when trying to execute this little code snippet
[code]
import urllib.request

scarlet_pimpernel_link = r'https://gutenber..... More

Print this item

  Inheritance problem
Posted by: Maryan - Oct-25-2020, 02:39 PM - Forum: General Coding Help - No Replies

def showHeader doesn't work and I realized that I did some mistake when I start coding the app. I created 'class application' with all elements from t..... More

Print this item

  Help
Posted by: virtual_claude - Oct-25-2020, 02:24 PM - Forum: General Coding Help - Replies (4)

Hi All,

Please go easy on me, I am new to this and I have never programmed/scripted before.

I am trying to learn python, and really struggling w..... More

Print this item

  How do use data from csv files as variables?
Posted by: JUSS1K - Oct-25-2020, 12:30 PM - Forum: General Coding Help - Replies (1)

[size=small]I started learning python myself as a hobby and I'm currently stuck with a csv tasks which I'm doing. See, I want to use the data from my ..... More

Print this item

  Multiple conditions when indexing an array with or without np.where
Posted by: noob2305 - Oct-25-2020, 07:42 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

I would appreciate some tips regarding my problem. There is an array (np.array) where I should find rows and columns of interesting el..... More

Print this item

  Getting started in Machine Learning
Posted by: Harshil - Oct-25-2020, 06:40 AM - Forum: Data Science - Replies (5)

Hey! I wanted to get started in machine learning and deep learning.
but i don't know how to get into it?

Please Guide me!! Confused

Print this item

  XOR solution explanation needed.
Posted by: omm - Oct-25-2020, 06:30 AM - Forum: Homework - Replies (7)

Question:
For a given list of numbers, only one digit is repeated odd number of times. Pass the list through function and return the number which is r..... More

Print this item

  Using pandas library
Posted by: ramitaherwahdan1978 - Oct-25-2020, 06:21 AM - Forum: General Coding Help - Replies (5)

Hi,

I am a teacher and we are using python and pandas data structure. I am having trouble with this code:

[python]
import pandas as pd
numbers..... More

Print this item

Bug Python Shell 3.9.0 - Issue with indentation
Posted by: Earis - Oct-25-2020, 03:46 AM - Forum: General Coding Help - Replies (17)

https://www.ppaste.org/ZlGieSKbc

The above code works fine on any other interpreter(12,16,done) but when I use the python shell 3.9.0 I get SyntaxE..... More

Print this item

  stats in sidebar?
Posted by: metulburr - Oct-25-2020, 02:24 AM - Forum: Board - Replies (6)

If we are minimizing things to expand such as online today, should we put the stats page in the sidebar too minimized by default?

Print this item

Video Autofill websforms
Posted by: JudgeDredd - Oct-24-2020, 11:22 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi members,

Was wondering if one can advise how to go about automating filling in webforms that exist on different websites, with all different fie..... More

Print this item

  Unspecified syntax error
Posted by: hhydration - Oct-24-2020, 11:09 PM - Forum: Homework - Replies (1)

[python]
def vigenere_encode(message, key):
encoded= ''
for c in range(len(message)):
msg_char_index=alpha.index(message[c])
..... More

Print this item

  [python=name.py] Issue
Posted by: ptrivino - Oct-24-2020, 10:42 PM - Forum: Board - Replies (1)

I made a post earlier, and I found that when I click the Python (to insert code in the post) it asks for a name/label. But when I supply one, the [pyt..... More

Print this item

  sleep_cycle()
Posted by: Skaperen - Oct-24-2020, 10:23 PM - Forum: Code sharing - No Replies

sleep_cycle.py:
[python]
from time import sleep,time as secs

def sleep_cycle(*arg):
"""Sleep to an offset time cycle.
sleep_cycle(offset,cy..... More

Print this item

  Modules and namespaces (again?)
Posted by: ptrivino - Oct-24-2020, 10:18 PM - Forum: General Coding Help - Replies (1)

Perhaps all I need is someone who can describe how to do this. I am writing a program which is getting lengthy, and wanted to move some subroutines to..... More

Print this item

  Unicode letters in crawling page
Posted by: DMDoniz - Oct-24-2020, 09:30 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi all,

currently I'm trying to learn how to crawl web pages in python. But I'm a bit confused when I have a look into developer tools of my selected..... More

Print this item

  Netmiko Loop question
Posted by: sc00ter - Oct-24-2020, 09:09 PM - Forum: General Coding Help - Replies (2)

I'm trying to figure out how to loop over a list of interface and run a TDR (Time Division Reflectometer) on Cisco switch ports.

I'm able to get th..... More

Print this item

  list call problem in generator function using iteration and recursive calls
Posted by: postta - Oct-24-2020, 08:47 PM - Forum: General Coding Help - Replies (1)

[inline]I want to convert any long integer number from 12576 to [6, 2], all the following snippets give me [[6, 2]] I want to remove the 2nd square b..... More

Print this item

Bug Help on Flagging Timestamps
Posted by: Daring_T - Oct-24-2020, 08:00 PM - Forum: General Coding Help - Replies (2)

Hi, I was trying to flag timestamps that increment but 1,but cannot be more than 3 matches and not '0:00:00' or '0:00:01', lastly flag the highest out..... More

Print this item

  change numerical values to categorical names
Posted by: JoeOpdenaker - Oct-24-2020, 07:38 PM - Forum: General Coding Help - Replies (3)

I am trying to convert numerical data points to categorical names in output. I want it to be labelled as categorical name but I need the raw data to ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Is the interpreter that c... 13 minutes ago helendamdam helendamdam General Codin...
  extracting data from a us... 32 minutes ago Perry Perry General Codin...
  [Tkinter] how to export a... 2 hours ago RonR Pedroski55 GUI
  pip install requests does... 10 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
Most views
  The best Prog... 576828
  Tutorial Requ... 499258
  Web Scraping ... 440614
  Newbie with P... 384589
  New Users Int... 368495
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday
adamsmith12 Yesterday
Ronny Yesterday

User Panel Messages

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