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,274
» Latest member: SavingSquirrel199835
» Forum threads: 38,788
» Forum posts: 175,860

Full Statistics

Online Users
There are currently 38 online users.
» 1 Member(s) | 28 Guest(s)
Bing, Google, Facebook, Mojeek, Applebot, deanhystad

Latest Threads
link variable to exc bloc...
Forum: General Coding Help
Last Post: Astrobert
5 hours ago
» Replies: 0
» Views: 40
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
7 hours ago
» Replies: 2
» Views: 139
best way to learn python
Forum: News and Discussions
Last Post: mamta25
10 hours ago
» Replies: 5
» Views: 3,065
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-17-2025, 10:27 PM
» Replies: 3
» Views: 193
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 179
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 138
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 184
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 360
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 76
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 380

 
  XML files and tables
Posted by: mauede - Sep-19-2020, 12:20 AM - Forum: General Coding Help - Replies (1)

I have benn asked to write a Python program to parse XML files recorded in a database, look for specific keywords and sentences, extract the associate..... More

Print this item

  Advanced CLI Snippet Manager
Posted by: bytebutcher - Sep-18-2020, 09:12 PM - Forum: Code sharing - Replies (1)

I made a cli tool for managing snippets. The source code can be found at https://github.com/bytebutcher/sn[url=https://python-forum.io/thread-29765.html]..... More

Print this item

  refreshing imports
Posted by: seandepagnier - Sep-18-2020, 08:38 PM - Forum: General Coding Help - Replies (4)

I have an environment (tinycore linux) where as the system boots, python modules get loaded. The program needs to start up quickly, and it takes a w..... More

Print this item

  Converting list to variables
Posted by: Palves - Sep-18-2020, 04:32 PM - Forum: General Coding Help - Replies (1)

Hi Guys,

I'm really stuck on this one. I was given a file that looks like this.
[output] id original
0 1 [['U K', 1], ['U..... More

Print this item

  how to pass the interactive string to Popen subprocess
Posted by: maiya - Sep-18-2020, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi All,

How to pass the interactive string to Popen subprocess and also it should support both python 2 as well as python3 interpreters.

For exa..... More

Print this item

  numpy in1d with two simple arrays
Posted by: claw91 - Sep-18-2020, 02:58 PM - Forum: General Coding Help - Replies (3)

I have this Matlab code

T = L(find(ismember(L+1,L)));

and I want to replicate it int..... More

Print this item

  Put all files in a directory into list. How?
Posted by: Denial - Sep-18-2020, 02:43 PM - Forum: General Coding Help - Replies (2)

Hello

I want to put all files recursively in a directory into a list with only certain type of extensions.

Here is what I did.

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

Print this item

  Split dict of lists into smaller dicts of lists.
Posted by: pcs3rd - Sep-18-2020, 02:11 PM - Forum: General Coding Help - Replies (3)

I am trying to upload a bunch of data to squarespace, which requires that no more than 50 items are sent at a time.
Currently, squarespace uses the f..... More

Print this item

  Spyder Quirk? global variable does not increment when function called in console
Posted by: rrace001 - Sep-18-2020, 01:48 PM - Forum: General Coding Help - Replies (1)

I did not see that Spyder had a forum so I tried here. If I should go somewhere else then please let me know.

The following code works as expected..... More

Print this item

  Dealing with list
Posted by: coja56 - Sep-18-2020, 01:36 PM - Forum: Homework - Replies (2)

## Its part of my boot camp Task

● Imagine you want to store the names of three of your friends in a list of
strings. Create a list variable call..... More

Print this item

  Duplicate functions
Posted by: Allegin - Sep-18-2020, 01:17 PM - Forum: General Coding Help - Replies (4)

Hi,

So I am writing a small Python app to carry out a few tasks and print the findings to the screen using the @Click module. Although it works as..... More

Print this item

  gaierror: [Errno 11001] getaddrinfo failed in Python 3.8
Posted by: rajesh3383 - Sep-18-2020, 12:43 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi, I am working on a process which I am trying to POST requests (WSDL link) and Get RESPONSE and parse the <Number value to XML. So, I started with R..... More

Print this item

  How to diff pandas rows and modify column value
Posted by: Mekala - Sep-18-2020, 11:35 AM - Forum: General Coding Help - Replies (1)

Hi,
I have bewlow pandas dataframe:

[python]ID sub_set group Rank
A1 A.0 A 1
A2 A.0 A 2
A1 A.1 A 3
A3 A.0 A ..... More

Print this item

  Changing the content of the table and saving the new data into another file
Posted by: femke_pythonquestion123 - Sep-18-2020, 10:27 AM - Forum: Homework - Replies (1)

Hi,

I am currently using a CSV file (actually one big table of data) consisting of data including names, addresses and coordinates of various resta..... More

Print this item

  Async / Await usage with asyncio to retrieve urls in parallel
Posted by: lukee - Sep-18-2020, 10:06 AM - Forum: General Coding Help - Replies (7)

I'm looking for transform the following code into parallel execution :

[code]urls = ['http://example1.org', 'http://example2.org', '...']

def ge..... More

Print this item

  Python script to only keep waypoints within x km from track?
Posted by: Winfried - Sep-18-2020, 08:47 AM - Forum: General Coding Help - No Replies

Hello,

I need to write a script in Python that can read a track and a set of waypoints, and only keep waypoints that lie within x kilometers from t..... More

Print this item

  Q on functions
Posted by: ebolisa - Sep-18-2020, 08:34 AM - Forum: General Coding Help - Replies (7)

Hi,

Can someone please explain how the sample variable is passed onto the function?

I understand if it would be [inline]sample..... More

Print this item

  Checkbox half working
Posted by: Milfredo - Sep-18-2020, 08:21 AM - Forum: General Coding Help - Replies (12)

I have a window with a check box. When I click it I get the result I expect. But when I uncheck it I don't get what I expect. Not sure why. Have googl..... More

Print this item

  don't know indenting of break and continue
Posted by: Colin999 - Sep-18-2020, 07:48 AM - Forum: General Coding Help - Replies (5)

I was trying to get this output...

My Seven Favorite Musical Artists

Enter Musical Artist: Drake
Enter Musical Artist: Cardi B
Enter Musical A..... More

Print this item

  new to coding
Posted by: pop3 - Sep-18-2020, 07:14 AM - Forum: General Coding Help - Replies (3)

Hi, I am doing a basic exercise in python were I have to call the function with a string as the value for the argument mystring and will return the le..... More

Print this item

  Serial loopback with Arduino doesn't work
Posted by: ThomasS - Sep-18-2020, 06:40 AM - Forum: General Coding Help - Replies (3)

Hi,
I'm trying to establish a serial communication with my Arduino Uno using pyserial. To test it, I programmed a simple loop back example, where th..... More

Print this item

  codec for byte transparency
Posted by: Skaperen - Sep-18-2020, 02:24 AM - Forum: General Coding Help - Replies (7)

given "random" bytes in the range from 0 to 255, such as from a file containing machine executable code, i would like to convert this "byte sequence" ..... More

Print this item

  Reading a table generated using PyTables
Posted by: Robotguy - Sep-18-2020, 01:36 AM - Forum: Data Science - Replies (1)

Hello,

I have a table with three columns and multiple rows. I know how to extract specific rows using table[0:5]. How can I extract just the..... More

Print this item

  'utf-8' codec can't decode byte 0xe2 in position 122031: invalid continuation byte
Posted by: tienttt - Sep-17-2020, 10:27 PM - Forum: General Coding Help - Replies (12)

Hi,

I'm using python 3.8.5 to call Jira Rest API to download all tickets information and save in a json file AllIssues.json. In order to get all fi..... More

Print this item

  Python class noob
Posted by: nallster7 - Sep-17-2020, 10:21 PM - Forum: General Coding Help - Replies (2)

Hi I need help I want my code to make it so it does print the message but it dosent seem to work.

[python]class Bil:
__modelYear = () # priva..... More

Print this item

  convert % to a number
Posted by: Nickd12 - Sep-17-2020, 09:22 PM - Forum: General Coding Help - Replies (2)

I have a number in a range form 1 to 254
lets say I I have an input of 20%
I need to convert that % into a number with in that range
I know the n..... More

Print this item

  Why I feel like quitting Python
Posted by: Drone4four - Sep-17-2020, 09:08 PM - Forum: News and Discussions - Replies (8)

Here is my story about how and why I came to want to learn Python and the futility and frustration with my lack of progress today and why I feel like ..... More

Print this item

  Django send email - email form
Posted by: Remek953 - Sep-17-2020, 08:16 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello, I created a contact form to send me an email when the user fills it out. Everything appears to be working, I get mail to my gmail but I get it ..... More

Print this item

  Intro python using lists
Posted by: Rustypotatoes - Sep-17-2020, 07:28 PM - Forum: Homework - Replies (2)

This is a homework question. I am learning how to use lists, slicing, del, sort, and other functions. I'm not asking anyone to do this for me, I just ..... More

Print this item

  Creating Excel files compatible with microsoft access
Posted by: vkallavi - Sep-17-2020, 06:57 PM - Forum: General Coding Help - No Replies

I am using xlswriter to create excel files, but these files are not importable by Microsoft Access.
what am I missing?

thanx.

Print this item

  Python Complete novice: Want to run a vulnerability script
Posted by: bhanney23 - Sep-17-2020, 06:09 PM - Forum: General Coding Help - Replies (1)

Hi, I am a complete novice at Python and I wish to run a script someone has made up to check against a critical windows vulnerability. I downloaded py..... More

Print this item

  Removing rows from array
Posted by: claw91 - Sep-17-2020, 02:45 PM - Forum: General Coding Help - Replies (3)

Hello, I want to replicate this Matlab code into Python

FILE(1:985,:) = [ ];

FILE is an..... More

Print this item

  new learner
Posted by: Rezvaneh - Sep-17-2020, 01:45 PM - Forum: General Coding Help - Replies (1)

hi all
I am new learner in python. I could not find my error root cause , can you help me :

[python]mood = 'tired'
if mood == 'tired':
hit_sno..... More

Print this item

  Unable to print stuff from while loop
Posted by: Nick1507 - Sep-17-2020, 01:29 PM - Forum: General Coding Help - Replies (4)

Alright so hello everyone, I'm a noob and have really little experience in Python so pls go easy on me. My question in this post is why I'm unable to ..... More

Print this item

  [nested dics] Easy way to find if a key exists?
Posted by: Winfried - Sep-17-2020, 01:29 PM - Forum: General Coding Help - Replies (9)

Hello,

I'm using xmltodict to work with XML files. It turns data into nested dictionaries.

In nested dictionaries that don't contain the same ke..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  link variable to exc bloc... 5 hours ago Astrobert Astrobert General Codin...
  PyQt6 QWidgets and system... 7 hours ago stevecoh1 Axel_Erfurt GUI
  best way to learn python 10 hours ago dutch mamta25 News and Disc...
  Graph Interpolate Difficu... 11-17, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 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...
  [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...
Most views
  The best Prog... 579122
  Tutorial Requ... 511424
  Web Scraping ... 442080
  Newbie with P... 386146
  New Users Int... 378568
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 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SavingSquirrel199835 Yesterday
Astrobert Yesterday
DataScientist071 Yesterday
aminrony1999 11-17
fobby888 11-17

User Panel Messages

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