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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 42 Guest(s)
Bing, Google

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 3
» Views: 79
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
11 hours ago
» Replies: 3
» Views: 92
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 67
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 98
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,041
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,554
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 182
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,194
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,439

 
  help with ipaddress package
Posted by: jcrubaugh45 - Jul-12-2022, 08:53 PM - Forum: General Coding Help - Replies (5)

I have some code where its reading from an input txt file... in the file are both valid IP and invalid IP, as well as valid CIDR. Im trying to do some..... More

Print this item

  Docker -building a python image
Posted by: saisankalpj - Jul-12-2022, 03:51 PM - Forum: General Coding Help - Replies (5)

This is my Dockerfile
[python]FROM python:3.10

#create a working directory
WORKDIR /app

#gets our requirements.txt file into our image
COPY require..... More


Attached Files

Thumbnail(s)
   
Print this item

  float("{:.2f}" return long number?
Posted by: korenron - Jul-12-2022, 02:34 PM - Forum: General Coding Help - Replies (2)

Hello ,
I have a code that divide 2 numbers then give me 2 after the decimal point
in most cased it's working
but something I get this answer :
..... More

Print this item

  Generate Progress Bar while executing a task
Posted by: maiya - Jul-12-2022, 01:44 PM - Forum: GUI - Replies (7)

Hi All,

I want to popup a progress bar, while executing a task parallelly. Progress bar should display (as a popup) while clicking some button (fro..... More

Print this item

  list comprehension
Posted by: 3lnyn0 - Jul-11-2022, 08:31 PM - Forum: General Coding Help - Replies (4)

Hi! I try to modify the function below with list comprehation.
But I don't now how to write that else secvantion

This:
[python]def cakes(recipe, ..... More

Print this item

  Seeing al the data in a dataframe or numpy.array
Posted by: Led_Zeppelin - Jul-11-2022, 07:22 PM - Forum: General Coding Help - Replies (1)

I am programming in Python and reading large file. Itis a csv file. When I code df on a single line it gives me a lot of information on the file, the ..... More

Print this item

  Invalid format specifier Error
Posted by: Led_Zeppelin - Jul-11-2022, 02:47 PM - Forum: General Coding Help - Replies (2)

When I run the Seaborn/Python following code on my laptop computer, I get the following output

[error]
ValueError T..... More

Print this item

  Close and Open QDialog from QDialog 2
Posted by: ITSRL - Jul-11-2022, 01:30 PM - Forum: General Coding Help - Replies (4)

So, I have two QDialogs in 2 different classes, in one Qdialog I have a QTableWidget with some data from a MYSQL db, I want to close and re-open it wh..... More

Print this item

  2-D array
Posted by: imrobinotmar - Jul-11-2022, 01:11 PM - Forum: Homework - No Replies

Write a program that does the following:
Accept the following inputs:
(1) Number of nodes
(2) A 2-D array representing edges. ith edge connects no..... More

Print this item

  Split string using variable found in a list
Posted by: japo85 - Jul-11-2022, 08:02 AM - Forum: General Coding Help - Replies (2)

Hello,
I have to split a string using a variable found in a list, but it doesn't work. This is my code:
causali = ['IP', 'TP', 'PR1', 'PR2', 'PR3', ..... More

Print this item

  A simple "If...Else" question from a beginner
Posted by: Serena2022 - Jul-11-2022, 01:17 AM - Forum: General Coding Help - Replies (6)

Hi everyone! I encountered this problem and spent hours on trying to resolve it:

The following does run just fine when you enter "eggs", or "cerea..... More


Attached Files

.py   Question.py (Size: 2.42 KB / Downloads: 261)
Print this item

  Mixing Boolean and comparison operators
Posted by: Mark17 - Jul-10-2022, 02:48 PM - Forum: General Coding Help - Replies (3)

I'm reading an intro to Python book and it gives these examples:

[Python]
>>> (4 < 5) and (5 < 6)
True
>>> (4 < 5) and (9 < 6)
False
>>> (1 ==..... More

Print this item

  Adding string after every 3rd charater [SOLVED]
Posted by: AlphaInc - Jul-10-2022, 01:34 PM - Forum: General Coding Help - Replies (2)

Hello everybody,

I want to get the filesize of a folder and store it as a variable. So far I've manged to do so:

[python]import os

def get_si..... More

Print this item

  list digit into number
Posted by: Voldyy - Jul-10-2022, 12:51 PM - Forum: Homework - Replies (2)

Hi, how can i change this code to work for two-digit numbers or three-digit number?

For now only work for single digit numbers, tried to change al..... More

Print this item

  how to expand each unique value in another column and fill zero if no match
Posted by: SriRajesh - Jul-10-2022, 09:19 AM - Forum: Data Science - No Replies

Hi,
I have below df:

[python]first_name second_name X Y count
A A1 0.1 0.4 1
A A1 ..... More

Print this item

  How to write the condition for deleting multiple lines?
Posted by: Lky - Jul-10-2022, 05:36 AM - Forum: General Coding Help - Replies (3)

Does anyone know how to delete lines in txt file according to user input without using any list or dictionary?

For example content inside txt file:..... More

Print this item

  looking for code to do timed prompt on terminal
Posted by: Skaperen - Jul-10-2022, 03:35 AM - Forum: News and Discussions - Replies (1)

i am looking for code or a function that can do a time limited prompt at a terminal. this would usually be a one key input to end the prompt and let ..... More

Print this item

  Add Tagged Objects to a Palo Alto Firewall device Group
Posted by: jcrubaugh45 - Jul-10-2022, 12:30 AM - Forum: Code sharing - No Replies

I just thought I would share some code Ive written for interacting with Palo Alto firewalls which are managed by Panorama.
[python]
import requests..... More

Print this item

Question coding bootcamp question
Posted by: jcrubaugh45 - Jul-09-2022, 11:58 PM - Forum: News and Discussions - No Replies

I'm sorry if this doesn't belong here, but I'm feeling stuck in a rut. This might be long so bear with me...

I began my python journey about a year..... More

Print this item

  Delete multiple lines from txt file
Posted by: Lky - Jul-09-2022, 04:43 PM - Forum: General Coding Help - Replies (6)

Does anyone know how to delete lines in txt file according to user input without using any list or dictionary?

For example content inside txt file:..... More

Print this item

  if else repeating
Posted by: Frankduc - Jul-09-2022, 03:39 PM - Forum: General Coding Help - Replies (12)

Hello,

Something i never understood if why with an if and else statement there is that repeat effect.
Inside the try except the voice is saying "l..... More

Print this item

  Automating Facebook Posts
Posted by: mieciow - Jul-09-2022, 01:47 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello people
I'm trying with selenium to post automatically in classified groups on facebook
I can log in, join the group, capture or sell something..... More

Print this item

  Query regarding regex
Posted by: Python_dumb - Jul-09-2022, 01:37 PM - Forum: General Coding Help - Replies (1)

Hi,

I am a beginner of python trying to learn through jupyter notebook.
I have a text file that contains close to 100k lines.
One sample line is..... More

Print this item

  Delete empty text files [SOLVED]
Posted by: AlphaInc - Jul-09-2022, 12:08 PM - Forum: General Coding Help - Replies (5)

Hello everybody,

I have a folder with many text-files, some of them are emtpy but have mutliple lines (for example, someone edited an empty text fi..... More

Print this item

  Apply textual data cleaning to several CSV files
Posted by: ErcoleL99 - Jul-09-2022, 08:17 AM - Forum: General Coding Help - No Replies

I need to perform a textual analysis that includes several speeches. The speeches were transcribed (using OCR) from several PDFs files into CSVs files..... More

Print this item

  how to connect over network and get the task done
Posted by: maiya - Jul-09-2022, 06:59 AM - Forum: Networking - Replies (3)

Hi All,

I have written a code snippet here. Where I wanted to connect a remote network, execute my script which is present in that system and get t..... More

Print this item

  How to plot seaborn heatmap on top of a background circle
Posted by: SriRajesh - Jul-09-2022, 03:08 AM - Forum: General Coding Help - No Replies

Hi,
I have below code to visualize data, and I want to ensemble a circle (heatmap inside big circle).

data is below:
[python]helix1 phase helix ..... More

Print this item

  While loop not ending (Best of 10 dice game)
Posted by: K3nidi - Jul-08-2022, 10:48 PM - Forum: General Coding Help - Replies (3)

I am just starting to learn, this is actually my very first project, and I haven'e been able to figure out or find why the while loop does not end (un..... More

Print this item

  Python Split json into separate json based on node value
Posted by: CzarR - Jul-08-2022, 03:56 PM - Forum: General Coding Help - Replies (1)

Using python I want to split a json file into multiple files based on the "transactionTypeName" within the transacations.details. In each file I want ..... More

Print this item

  Execute the script in remote and get the output
Posted by: maiya - Jul-08-2022, 01:31 PM - Forum: GUI - Replies (2)

Hi All,

I am working on one project (personal project), where I wanted to connect the remote system, execute my predefined script, get the result b..... More

Print this item

  Read data via bluetooth
Posted by: frohr - Jul-08-2022, 11:30 AM - Forum: General Coding Help - Replies (9)

Hi,
I have Teensy/Arduino and HC-05 bluetooth module. I want to send 30000 number values to PC/Python.

I have this code for Arduino/Teensy. It wil..... More

Print this item

  python-docx: preserve formatting when printing lines
Posted by: Tmagpy - Jul-08-2022, 08:03 AM - Forum: General Coding Help - Replies (4)

I am needing to filter out lines containing formatting like italic, bold,.... I used the following code to filter and print out those lines:

[python]..... More

Print this item

  remove dot
Posted by: devilonline - Jul-08-2022, 02:34 AM - Forum: General Coding Help - Replies (3)

Hi,

i'm doing a program in QTpy5 and I want to remove the dot in the query

in python is easy here i cant make it work

here is my code:

[p..... More

Print this item

  Do I have enough skills to get a programming job?
Posted by: caelum_carmine - Jul-07-2022, 11:46 PM - Forum: News and Discussions - Replies (1)

I've now decided to devote all my free time towards getting a job as a programmer. I currently work in a hotel. But I'm wondering if I should devote..... More


Attached Files

.pdf   Kyle Foley CV - Python Developer.pdf (Size: 97.18 KB / Downloads: 333)
Print this item

  looking for code that substitues parts of python code
Posted by: Skaperen - Jul-07-2022, 11:34 PM - Forum: News and Discussions - No Replies

i am looking for code, preferably organized as a function, that given a big string containing valid Python code, can substitute one string for another..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 8 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 11 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578682
  Tutorial Requ... 509089
  Web Scraping ... 441836
  Newbie with P... 385788
  New Users Int... 375041
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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