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,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,833

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 31 Guest(s)
Mojeek, Bing, Google, AOL

Latest Threads
Please guide me to comple...
Forum: General Coding Help
Last Post: noisefloor
20 minutes ago
» Replies: 1
» Views: 60
[solved] re.split issue
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 7
» Views: 133
New to python and coding
Forum: Homework
Last Post: jefsummers
10 hours ago
» Replies: 6
» Views: 182
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 352
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 114
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 242
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 379
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 148
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,643
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 248

 
  code for CSV file to html file without pandas
Posted by: jony057 - Apr-24-2021, 05:51 PM - Forum: General Coding Help - Replies (1)

Need to write information into csv and then transfer this information to HTML file.

Print this item

  Arc_AntsHunt: Game Developed In Python Arcade
Posted by: adt - Apr-24-2021, 02:44 PM - Forum: Code sharing - Replies (2)

Link to github page listing this repository along with other ones:
Arc_AntsHunt

This game, de..... More

Print this item

  textvariable not updating on threshold value
Posted by: knoxvilles_joker - Apr-24-2021, 10:07 AM - Forum: GUI - No Replies

On the fire screen class SecondFrame. I have a button that is not updating once ammo hits a certain level. I have it kind of updating like I want wh..... More

Print this item

Question running Flask with waitress having web traffic log...
Posted by: SpongeB0B - Apr-24-2021, 09:50 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi everyone,

Following my previous thread: Flask-Self-hosted-deployme[url=https://python-forum.io/thread-33422.html]..... More

Print this item

  My WIndow isnt opening at all.
Posted by: SovietMilkerGenerak - Apr-24-2021, 09:48 AM - Forum: GUI - Replies (1)

[python]import sys
from PyQt5.QtWidgets import *


class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init..... More

Print this item

  drawing textvariable from Button inside canvas
Posted by: knoxvilles_joker - Apr-24-2021, 08:38 AM - Forum: General Coding Help - Replies (7)

In the top left and right I am trying to draw a circle that a button will exist in that will change as certain keys are pressed.

[python]import tki..... More

Print this item

  urllib.request.ProxyHandler works with bad proxy
Posted by: spacedog - Apr-24-2021, 08:02 AM - Forum: General Coding Help - No Replies

I'm using urllib.request to read pages for scraping. Things were connecting and reading OK but I wanted to add some exception handling in-case one of..... More

Print this item

  Redirecting all print statements from all functions inside a class to Tkinter
Posted by: Anan - Apr-24-2021, 04:37 AM - Forum: GUI - Replies (1)

I have written the below code for displaying some content on the GUI window. Some of the code I have removed from between which was not needed here. _..... More

Print this item

  Need help with XPath using requests,time,urllib.request and BeautifulSoup
Posted by: spacedog - Apr-24-2021, 12:32 AM - Forum: General Coding Help - Replies (3)

I have an xpath expression that I know works. Using the URL:
https://www.yellowpages.com/houston-tx/m...1657186981

a..... More

Print this item

  [split] [split] How to make a window stay on top
Posted by: knoxvilles_joker - Apr-23-2021, 11:07 PM - Forum: GUI - Replies (10)

Is there a trick to ensure that each popup window always stays on top, or do I have to click on each popup window to make it the active window?

Print this item

  How to measure execution time of a multithread loop
Posted by: spacedog - Apr-23-2021, 07:41 PM - Forum: General Coding Help - Replies (2)

I have a small app that does work on about 100 loops each on a new thread. How can I measure the total execution time from the point where the app st..... More

Print this item

Question Sublist/ Subarray into string Python
Posted by: SantiagoPB - Apr-23-2021, 06:29 PM - Forum: General Coding Help - Replies (2)

I have a little problem , I have this code and I need to convert the final print to a string, to be able to printthe final results in different lines ..... More

Print this item

  ValueError: I/O operation on closed file problem
Posted by: aliwien - Apr-23-2021, 05:49 PM - Forum: General Coding Help - No Replies

[python]import random
import discord
from discord.ext import commands

cad = commands.cad()

my_files=[discord.File('A:\\mar\\as.jpg'), discord...... More

Print this item

  Return won't stop a function
Posted by: jonagold - Apr-23-2021, 04:56 PM - Forum: Game Development - Replies (3)

I'm currently making a menu for my game in python. And I encountered a problem with code, that switches between different menu pages. When it needed t..... More

Print this item

  beginner text formatting single line to column
Posted by: jafrost - Apr-23-2021, 03:47 PM - Forum: General Coding Help - Replies (4)

Hello, I'm brand new to python having worked through an online python course for beginners, but with no other experience. For my first project I've be..... More

Print this item

  Moving specific files then unzipping/decompressing
Posted by: christophereccles - Apr-23-2021, 02:51 PM - Forum: General Coding Help - Replies (2)

So I have a folder with a number of subfolders inside. Inside these folders are a couple of .gz files. I need to recursively copy these files to there..... More

Print this item

  fpdf adding a new font to my report
Posted by: KatMac - Apr-23-2021, 02:19 PM - Forum: General Coding Help - No Replies

Hi

I have created a class to set up the headers and footers for my pdf file.

In my header function inside the class, I would like the heading 'B..... More

Print this item

  Random pictures from a file
Posted by: aliwien - Apr-23-2021, 11:37 AM - Forum: General Coding Help - Replies (2)

Hello I'm trying to create a discord bot and I'm stuck one subject. I want to share a random photo from a folder when someone write in the chat specif..... More

Print this item

  using WinRt module in python script
Posted by: akhilgnair - Apr-23-2021, 05:38 AM - Forum: General Coding Help - No Replies

I want to enable sim pin using WinRT API MobileBroadbandPin. I have imported the API in my script but it is giving an error while initializing.

[py..... More

Print this item

  Appropriate data-structure / design for business-day relations (week/month-wise)
Posted by: sx999 - Apr-22-2021, 06:24 PM - Forum: General Coding Help - Replies (2)

Hi guys,

I'm just trying to figure out "the best", i.e. cleanest and most appropriate way to do the following:

For a specified day, e.g. thursda..... More

Print this item

  Shorter or more descriptive?
Posted by: estarq - Apr-22-2021, 05:44 PM - Forum: Code Review - Replies (2)

Which one should I commit?

[python]for i in range(0, len(data), 2):
decimal_number = int(data[i:i + 2], 16)
binary_number = bin(decimal_numbe..... More

Print this item

  In put path and directory
Posted by: Led_Zeppelin - Apr-22-2021, 05:11 PM - Forum: General Coding Help - Replies (1)

I have a question about the following python 3 code.

[python]
def _create_df(path, directory):
"""
Creates a df (with shuffled entries)..... More

Print this item

  AttributeError: module 'string' has no attribute 'uppercase'
Posted by: Anldra12 - Apr-22-2021, 04:49 PM - Forum: General Coding Help - Replies (10)

[quote]trying to implement a match word to dictionary while return the error no attribure 'uppercase' [/quote]

[python]from __future__ import..... More

Print this item

  Help for having the window open
Posted by: jip31 - Apr-22-2021, 04:45 PM - Forum: General Coding Help - Replies (4)

Hi
I launch the script below but the windows close automatically
What I have to add to my code for having the windows open please?

[python]nb = 7..... More

Print this item

  Calls to Attributes of a Class
Posted by: SKarimi - Apr-22-2021, 03:17 PM - Forum: General Coding Help - Replies (3)

how does a direct call to openpyxl.load_workbook work?

According to OpenPyXL documentation, load_workbook is a submodule of a the subpackage..... More

Print this item

Smile Exception with raise and input
Posted by: artemisellada - Apr-22-2021, 02:26 PM - Forum: Homework - Replies (3)

Hello, I have a question about an assignment in my programming course Confused
I need to create an exception so that only integer numbers can b..... More

Print this item

Lightbulb Jupyter is not working properly
Posted by: brunolelli - Apr-22-2021, 11:58 AM - Forum: General Coding Help - Replies (3)

Hello guys,

I'm using jupyter notebook to run my code 24h a day, on 1 minute interval... and everything is working perfectly but suddently, with n..... More

Print this item

Lightbulb On error > Try again
Posted by: brunolelli - Apr-22-2021, 11:51 AM - Forum: General Coding Help - Replies (2)

Hello guys,

I've the following code with a Try and Except statement, as you can see below:
[python]import csv
import time
import s..... More

Print this item

  Importing vars from another file
Posted by: vulturas - Apr-22-2021, 10:35 AM - Forum: Homework - No Replies

Hello everyone :)
While doing my homework I came across the following problem:

We have to develop a GUI with PyQt - this task was not a problem.
..... More

Print this item

  Character Increment
Posted by: AnokhiRaaz - Apr-22-2021, 04:19 AM - Forum: General Coding Help - Replies (1)

Hi, can anyone help me to writing me this code:
if first index of id is Sweety1 then it continue till ‘Z’ like Sweety1_a, Sweety1_b till Sweety1_z, ..... More

Print this item

  how would you feel if ...
Posted by: Skaperen - Apr-22-2021, 12:22 AM - Forum: Bar - Replies (15)

how would you feel if Python's assignment operator was := instead of just = ?

Print this item

  Example shalow neural network
Posted by: Malin3k - Apr-21-2021, 11:14 PM - Forum: Homework - Replies (1)

Hello, I have a question, does anyone know the problem solved with the help of shallow neural networks, i't would be great with the code so that you c..... More

Print this item

  Using dictionary to find the most sent emails from a file
Posted by: siliusu - Apr-21-2021, 10:59 PM - Forum: Homework - Replies (6)

Hi Everyone,
I have been stuck with this question for a whole week. The staff of our course is not helpful at all. Hope I could get any clue from you..... More

Print this item

  Dictionary with ranges that have a float step value
Posted by: Irv1n - Apr-21-2021, 07:01 PM - Forum: General Coding Help - Replies (2)

Hello to all!

I need to create dictionary like this:
[python]
rcd_curr = {'SOUR:SAF:RCDC': {0.025: (?????), 0.25: (???????), 2.5: (???????)}}
fo..... More

Print this item

  Impact of words from sentence on popularity
Posted by: dvorak - Apr-21-2021, 05:20 PM - Forum: Data Science - Replies (5)

Hi, I have a table with few thousand of rows, in one column is a one or few sentences of joke, in second number of views. I would like to sort words w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Please guide me to comple... 20 minutes ago pbkurd noisefloor General Codin...
  [solved] re.split issue 5 hours ago paul18fr Pedroski55 General Codin...
  New to python and coding 10 hours ago lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578937
  Tutorial Requ... 510292
  Web Scraping ... 441961
  Newbie with P... 385975
  New Users Int... 376897
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday
Jessicaadams Yesterday

User Panel Messages

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