Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: help with ipaddress package
Post: RE: help with ipaddress package

I have never seen the /24 notation; if, as suggested, it is the subnet mask, it is irrelevant and the simplest thing would be to remove it. It is a very, very, very bad idea to ever use exit() in any...
supuflounder General Coding Help 5 1,481 Jul-13-2022, 02:01 AM
    Thread: Help needed with a "for loop" + error handling
Post: RE: Help needed with a "for loop" + error handling

(May-27-2022, 11:28 AM)tamiri Wrote: I would like to iterate over a list of items. In each round, Python is checking the latest Excel file in a folder, opens it, and saves it. Upon an error, I woul...
supuflounder General Coding Help 2 2,529 May-27-2022, 11:50 AM
    Thread: UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin
Post: RE: UnicodeEncodeError: 'ascii' codec can't encode...

Can you show the actual code you are using? All we need are the open and print calls, plus the way you form the data to be sent. I haven't looked at it in a while, but there is a way to tell Python ...
supuflounder General Coding Help 6 2,738 Apr-29-2022, 09:30 AM
    Thread: Formating generated .data file to XML
Post: RE: Formating generated .data file to XML

(Apr-13-2022, 05:04 PM)malcoverc Wrote: I have some generated data files I want to format to XML: 1234=>item1:something11: something11<COMMA>item4:something12: 12some...
supuflounder General Coding Help 3 1,358 Apr-13-2022, 08:29 PM
    Thread: file icons have Firefox icon
Post: RE: file icons have Firefox icon

(Mar-31-2022, 08:59 PM)Ricvourn Wrote: Hi All I'm new to Python. Have been trying to save files from Python to my desktop and when I save them they are saved as a Firefox browser window. I type .p...
supuflounder General Coding Help 4 1,450 Mar-31-2022, 11:29 PM
    Thread: multiprocessing
Post: RE: multiprocessing

I see nothing here that even hints that there is an order of executing the threads. Get this, and internalize it, and own it: Unless you provide an external means to determine how threads execute, th...
supuflounder General Coding Help 12 2,458 Mar-18-2022, 09:39 AM
    Thread: Evaluating arithmetic expression with recursion.
Post: RE: Evaluating arithmetic expression with recursio...

(Dec-16-2021, 01:40 PM)muddybucket Wrote: Hi, I am tasked to make a recursive function which evaluates the expression starting from the given position. Return the value and the first position after ...
supuflounder General Coding Help 3 2,858 Dec-16-2021, 07:35 PM
    Thread: Using If Statements Instead of While Loop in Simple Game Program
Post: RE: Using If Statements Instead of While Loop in S...

Also, you have asked for input("") several times. You did not just get the input and store it. input = ("") if input("").lower() == "help": print("start - to start the car") print("stop -...
supuflounder Homework 5 3,175 Dec-14-2021, 12:23 AM
    Thread: Separate text files and convert into csv
Post: RE: Separate text files and convert into csv

There is a problem with several of these suggestions. For example output.writerow([(txt_file), line.replace('\n', ''))will mean that This is one line. This is another line which is kind of longwill co...
supuflounder General Coding Help 6 2,884 Dec-10-2021, 09:30 AM
    Thread: Issue with program not passing to other elif condition
Post: RE: Issue with program not passing to other elif c...

Thank you for pointing that out. I'm still learning Python. Key here is the code as shown has these huge gaps, such as between 2.9 and 3; ranges must be open at one end and closed at the other, and ...
supuflounder General Coding Help 6 2,112 Nov-18-2021, 10:28 AM
    Thread: Issue with program not passing to other elif condition
Post: RE: Issue with program not passing to other elif c...

if BMI<=18.4: print('You are underweight') elif BMI>=18.5 or BMI<=24.9: # These should be 'and', not 'or' print(' You have Normal weight') elif BMI >=25 or BMI<=29.9: # And if I am 24....
supuflounder General Coding Help 6 2,112 Nov-18-2021, 10:00 AM
    Thread: Remove an item from a list contained in another item in python
Post: RE: Remove an item from a list contained in anothe...

(Nov-06-2021, 09:37 PM)CompleteNewb Wrote: (Nov-06-2021, 09:15 PM)supuflounder Wrote: What about [4,3], [2,5], [6,4]. [4,2,5]? It is looking like O(n^2); it may be worse. Knowing the actual reje...
supuflounder General Coding Help 19 5,763 Nov-06-2021, 09:58 PM
    Thread: Remove an item from a list contained in another item in python
Post: RE: Remove an item from a list contained in anothe...

(Nov-06-2021, 08:17 PM)CompleteNewb Wrote: I have this randomly generated list in python: l = [[2,3,4,5],[2,3],[7,8],[2],[4,5,6]] and i want to remove the items [2,3] and [2] because they are comp...
supuflounder General Coding Help 19 5,763 Nov-06-2021, 09:15 PM
    Thread: Still do not get how Python iterates over a file
Post: RE: Still do not get how Python iterates over a fi...

(Aug-21-2021, 06:36 AM)tester_V Wrote: Here you go. I'm using a file and a list. File: ZPM911 ZPM1912 ZPM1919 ZPM4555 ZPM4556 ZPM4557Snippet: ff=open("c:/02/TTST.txt",'r') list_1=ff.readlines() li...
supuflounder General Coding Help 13 3,625 Aug-21-2021, 07:26 AM
    Thread: NEED HELP NEW TO PYTHON!!
Post: RE: NEED HELP NEW TO PYTHON!!

(Aug-14-2021, 07:09 AM)perfringo Wrote: It is always good to have names. This makes comprehending much more easier for humans (computer doesn't care :-). So you first iteration could become (EDIT: ...
supuflounder General Coding Help 6 4,900 Aug-14-2021, 08:04 PM
    Thread: Something is not working and i have no idea what
Post: RE: Something is not working and i have no idea wh...

(Aug-03-2021, 07:03 AM)RavenSenin Wrote: Hello guys . I'm new here and i'm new to coding so don't be cruel please. Here is my issue : i'm learning lists now and creating simple program which works l...
supuflounder General Coding Help 7 2,490 Aug-03-2021, 10:46 AM
    Thread: Windows compatibility
Post: RE: Windows compatibility

(Aug-03-2021, 08:52 AM)Astrikor Wrote: I have a program running which continuously displays current time in a Tkinter window. Occasionally the program hangs with Red "Close" button in the Tkinter ...
supuflounder General Coding Help 19 5,295 Aug-03-2021, 10:38 AM
    Thread: idle and characters with decimal value>127
Post: RE: idle and characters with decimal value>127

(Jun-16-2021, 07:34 AM)hakelm Wrote: If I running python 3.8 in the terminal do print(chr(65)+chr(128)) I get the expected result A� but if I execute the same command in idle 2.7.12 the result is j...
supuflounder General Coding Help 14 4,458 Jun-16-2021, 11:06 AM
    Thread: How to process the array correctly
Post: RE: How to process the array correctly

Are you able to print the two cell masks? That might reveal something interesting. Since you did not include all the code, it is not possible to analyze what happened. All I get is an error messag...
supuflounder General Coding Help 4 2,464 Jun-07-2021, 01:11 PM
    Thread: Segmentation fault (core dumped)
Post: RE: Segmentation fault (core dumped)

This is a bug in Python or a library. The whole point of Python is to avoid any possibility of getting a segmentation fault. If you get one, you have discovered a bug. Python cannot generate seg fa...
supuflounder General Coding Help 1 10,522 Jun-07-2021, 12:56 PM

User Panel Messages

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