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,495
» Latest member: retnuh
» Forum threads: 38,580
» Forum posts: 174,822

Full Statistics

Online Users
There are currently 687 online users.
» 0 Member(s) | 681 Guest(s)
Bing, Google, Yandex, Applebot, Internet Archive

Latest Threads
problems with netcdf if I...
Forum: General Coding Help
Last Post: leo54
2 hours ago
» Replies: 17
» Views: 1,538
Pip help
Forum: General Coding Help
Last Post: leo54
2 hours ago
» Replies: 5
» Views: 613
How To Attach data Files
Forum: Board
Last Post: leo54
3 hours ago
» Replies: 4
» Views: 4,206
Languages
Forum: General Coding Help
Last Post: Gribouillis
3 hours ago
» Replies: 1
» Views: 66
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
Yesterday, 07:49 AM
» Replies: 8
» Views: 21,252
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 06:08 AM
» Replies: 3
» Views: 582
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 28,829
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,950
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 438
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 238

 
  List Sorting Problem
Posted by: ZZTurn - Sep-22-2022, 02:55 AM - Forum: General Coding Help - Replies (5)

Sorry I am a novice.

I am trying to sort a custom dictionary consisting of a list of 2-element lists, (lexical entry and definition), using sort()..... More

Print this item

  managing new windows
Posted by: JonWayn - Sep-22-2022, 01:29 AM - Forum: General Coding Help - Replies (1)

I need to control a website at which the links i interact with open in a new popup/tab. The href attribute of the links do me no good because using it..... More

Print this item

  War with deck of cards
Posted by: menator01 - Sep-21-2022, 07:44 PM - Forum: Code sharing - No Replies

My attempt at war with a deck of cards. Not all of the Player attributes are used right now.


..... More

Print this item

  Populating list items to html code and create individualized html code files
Posted by: ChainyDaisy - Sep-21-2022, 07:18 PM - Forum: Web Scraping & Web Development - No Replies

I need to create a bunch of individualized e-mail signatures in html from data collected in an Excel file. I need a separate html/txt file as output f..... More

Print this item

  Why both loops don't work in python?
Posted by: nau - Sep-21-2022, 01:45 PM - Forum: General Coding Help - Replies (3)

Hi,

I have 2 if loops to be executed based on input from user, but only 1 loop works at a time even if the condition satisfices, I had to comment o..... More

Print this item

  I need a mentor
Posted by: classik16 - Sep-21-2022, 01:34 PM - Forum: Bar - Replies (5)

Hello, My name is Frank from Ghana in the west africa, Please I just started learning python today.
Can i get a dedicated mentor i can ask question ..... More

Print this item

  In SQL Server, mix data types.
Posted by: shiv11 - Sep-21-2022, 12:50 PM - Forum: General Coding Help - No Replies

While reading an article of SQL server on wiki thought that, In SQL Server, is it possible to merg..... More

Print this item

  Python Regex
Posted by: quest - Sep-21-2022, 12:16 PM - Forum: General Coding Help - Replies (2)

I have the following text file:
[output]S = 0, X are: (1, 0, 1, 1, 0, 0, )S = 0, Z are: (0, 1, 1, 1, 0, 1, )Data bits measurement:0, 0, 0, 1, 1, 1, 1..... More

Print this item

  Simple calculator
Posted by: ryza - Sep-21-2022, 11:02 AM - Forum: Homework - Replies (3)

[python]
import math

def allString(first, second):

operation = ('add', 'subtract', 'multiply', 'divide')
for v in operation:
print(f"..... More

Print this item

  Import a module one step back of the path
Posted by: prathampatel9 - Sep-21-2022, 09:31 AM - Forum: General Coding Help - Replies (1)

Hi I have the following file structure

Backend
|
--->Main --> app.py
|
--->package --> test.py

[b]NOTE: Here Main and package directories a..... More

Print this item

  How to sort a list with duplicates and return their unique indices.
Posted by: Echoroom - Sep-21-2022, 09:19 AM - Forum: Homework - Replies (3)

Given a list:

lst = [48,52,35,35,44,35]
I want to sort the list in descending order, so I use this:


[python]sorted..... More

Print this item

  Mac os (M2) "Python is loading libcrypto in an unsafe way"
Posted by: jpelayo - Sep-21-2022, 09:11 AM - Forum: General Coding Help - Replies (1)

Hi,

I have migrated to a mac os 12.6 with Python 3.10.7, and scripts involving ssl and hashing now complain with the error

[error]
/Library/Fr..... More

Print this item

  Pylint
Posted by: DPaul - Sep-21-2022, 07:00 AM - Forum: Bar - No Replies

Hi,
Question: to what extent is "pylint" a reliable analysis.
I have applied pylint to a program, and over half the comments are about vars not bein..... More

Print this item

  Hangman Game
Posted by: monkeydesu - Sep-21-2022, 03:11 AM - Forum: Code Review - Replies (1)

I've been teaching myself how to code for a few weeks and did a hangman game all by myself! I'm so chuffed ! Such a good feeling and I still can't bel..... More

Print this item

  i'm back to f-strings, again
Posted by: Skaperen - Sep-20-2022, 06:10 PM - Forum: General Coding Help - Replies (4)

i have a list of file name patterns. where each parameter is expected in the file name varies between names. but, this list has it all. the list wa..... More

Print this item

  Several xml files to dataframe
Posted by: mfernandes - Sep-20-2022, 03:46 PM - Forum: General Coding Help - Replies (2)

I have several xml files that I want to transform into a dataframe. Each xml file should be in one row. Here is an example of a xml file:
[python]
<..... More

Print this item

  create a "sound" server
Posted by: korenron - Sep-20-2022, 01:56 PM - Forum: General Coding Help - Replies (4)

Hello,
I have a mic connected to my pi
and up until now - when I wanted to hear from the mic I have run this command
[python]ffmpeg -ar 44100 -a..... More

Print this item

  Beginner Python Question: FIzz Buzz using while loop
Posted by: camoyn13 - Sep-20-2022, 03:53 AM - Forum: Homework - Replies (2)

Hello,

Having an issue with the Fizz Buzz challenge using the While Loop. Any help would be greatly appreciated. Please note I HAVE TO USE t..... More

Print this item

  Problems with understanding class index.
Posted by: Brainbit - Sep-20-2022, 03:16 AM - Forum: General Coding Help - Replies (3)

[python]class Store():
Money = 5.00
Day = 1
Stores = []
def __init__(self,StoreName,StoreProfit,storecost):

self.StoreName = ..... More

Print this item

  pyqt6 and random emoji
Posted by: menator01 - Sep-19-2022, 06:46 PM - Forum: Code sharing - No Replies

Just thought it was kinda cool.

[python]from PyQt6.QtWidgets import (QLabel, QApplication, QWidget, QMainWindow, QVBoxLayout, QPushButton)
import ..... More

Print this item

  Unsupported Format Character
Posted by: Led_Zeppelin - Sep-19-2022, 03:48 PM - Forum: General Coding Help - Replies (2)

I got this error of unsupported format character, As shown:

[output]
ValueError Traceback (most recent call last)
..... More

Print this item

  Remove tag several xml files
Posted by: mfernandes - Sep-19-2022, 03:43 PM - Forum: General Coding Help - Replies (5)

Dear python users,
I want to drop the same tag in several xml files in one folder. Here is a sample of one xml file:
[python]
<?xml version='1.0' e..... More

Print this item

  WebDriver' object has no attribute 'find_element_by_css_selector
Posted by: rickadams - Sep-19-2022, 01:48 PM - Forum: General Coding Help - Replies (3)

[output]DevTools listening on ws://127.0.0.1:56769/devtools/browser/34ec545d-5d6c-434d-86c6-fc77922dbfe6

DevTools listening on ws://127.0.0.1:56770..... More

Print this item

  processes shall be parallel
Posted by: flash77 - Sep-19-2022, 12:54 PM - Forum: General Coding Help - Replies (4)

Hi,

how can I get this multi processing example working in the easiest way?

I 've got 4 processes, each process lasts 2 seconds.

How can I ge..... More

Print this item

  Server Http and Https
Posted by: JohnnyCoffee - Sep-18-2022, 08:03 PM - Forum: Networking - Replies (2)

[align=justify]I started a project of a web server that accepts http and https requests for the python language. The idea is to no longer depend on ws..... More

Print this item

  python installation/running inside singularity container
Posted by: erdemath - Sep-18-2022, 05:16 PM - Forum: General Coding Help - Replies (2)

I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says;

[error]
Singularity> apt-get -y updat..... More

Print this item

  Converting python to FileMaker
Posted by: DWolf - Sep-18-2022, 04:45 PM - Forum: General Coding Help - Replies (6)

I need to convert a client's python code for generating a login code to something similar in FileMaker. I didn't think this could be done in FileMaker..... More

Print this item

  Controlling date and time in tests
Posted by: ndc85430 - Sep-18-2022, 03:38 PM - Forum: Tutorial Requests and Submissions - No Replies

Often, the programs we write and systems we build have to do something based on date and/or time. One example could be a library application that comp..... More

Print this item

  Transparent Canvas
Posted by: finndude - Sep-18-2022, 02:59 PM - Forum: GUI - Replies (8)

Hi,

I have this code here:

[python]

from tkinter import *

window=Tk()

window.title("Drawing Shapes on Button Press")

window.attribut..... More

Print this item

  I use VsCode with Python and it currently won't let me run any code
Posted by: NordicMonkey - Sep-18-2022, 02:46 PM - Forum: General Coding Help - Replies (2)

I'm currently starting with Python, I use VsCode; Hadn't had any problems until yesterday.

Basically the problem is that I can execute individual l..... More


Attached Files

Thumbnail(s)
                   
Print this item

  MatplotibTicks every 24 hours
Posted by: TamP - Sep-18-2022, 10:48 AM - Forum: General Coding Help - Replies (4)

My code displays temperatures imported from an excel sheet.
The graph works as I want but I cannot see how to show an xtick every 24 hours rather tha..... More

Print this item

  Reminder that pip runs arbitrary code
Posted by: stevendaprano - Sep-18-2022, 03:45 AM - Forum: News and Discussions - No Replies

This is just a reminder that not only pip install but also pip dryrun will ..... More

Print this item

  Question: print issue
Posted by: python202209 - Sep-17-2022, 06:45 PM - Forum: General Coding Help - Replies (3)

Ask a silly question:

Why I got SyntaxError for print(1,012,000) but not print(1,000,000)?

See attached screenshot.


Attached Files

Thumbnail(s)
   
Print this item

  QWidgetAction of QFrame not showing in menu
Posted by: malonn - Sep-17-2022, 04:34 PM - Forum: GUI - Replies (4)

I am trying to set up a QPushButton with menu that has a horizontal frame in it, but it won't show. The button menu has several labe..... More

Print this item

  Coding Eror
Posted by: Led_Zeppelin - Sep-17-2022, 03:25 PM - Forum: General Coding Help - Replies (3)

The following Python code generates an error:

[code]
q = image_data_org.loc[image_data_org.loc['machine_status']==0]['time_period']
p = image_dat..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  problems with netcdf if I... 2 hours ago Blaubart leo54 General Codin...
  Pip help 2 hours ago meditek leo54 General Codin...
  How To Attach data Files 3 hours ago Talch leo54 Board
  Languages 3 hours ago Azdaghost Gribouillis General Codin...
  Error on import: SyntaxEr... Yesterday, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... Yesterday, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 566975
  Tutorial Requ... 463172
  Web Scraping ... 431867
  Newbie with P... 369504
  Thread remain... 341628
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12052
buran 8170
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
retnuh Today
leo54 Today
Thomashibra Today
sumu123 Today
BonnMacanzie Today

User Panel Messages

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