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,493
» Latest member: Arush
» Forum threads: 38,579
» Forum posts: 174,819

Full Statistics

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

Latest Threads
Selenium - Error writing ...
Forum: Web Scraping & Web Development
Last Post: FrankSmoot
1 hour ago
» Replies: 2
» Views: 1,716
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
Today, 07:49 AM
» Replies: 8
» Views: 21,145
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
Today, 06:08 AM
» Replies: 3
» Views: 572
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
Yesterday, 12:26 PM
» Replies: 13
» Views: 28,801
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
Yesterday, 05:31 AM
» Replies: 17
» Views: 1,501
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,926
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,181
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 427
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 216
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 330

 
  i would like this kind of logic
Posted by: Skaperen - Oct-25-2022, 03:27 AM - Forum: News and Discussions - No Replies

back in my assembly language days i could put together some logic where i had 2 conditionals (lets call them A and B) and 2 bodies of code (C and D). ..... More

Print this item

  remove none
Posted by: tommasoProne - Oct-24-2022, 06:30 PM - Forum: General Coding Help - Replies (1)

Hello world, I have a problems whit code, my code is in Italian, I post my code down.
[python]
import math

hello_message = print("""
CALCOLATRIC..... More

Print this item

  How to hardcode event.state? (tkinter)
Posted by: philipbergwerf - Oct-24-2022, 12:55 PM - Forum: General Coding Help - Replies (1)

I have a small question.
if I print the key event while holding shift and control I see:
`<KeyPress event state=Shift|Control|Mod2 keysym=Left keyco..... More

Print this item

  Django authenticate problem
Posted by: Carolzi - Oct-24-2022, 07:10 AM - Forum: General Coding Help - No Replies

this is my form in form.py:
[python]
from django import forms
from django.contrib.auth.models import User


class UserRegistrationForm(forms.Mod..... More

Print this item

  multi-threaded tcp server-newbie
Posted by: gary - Oct-24-2022, 03:27 AM - Forum: Networking - Replies (15)

I am a newbie and starting to learn python. I have a task of developing multi-threaded server which can handle upto 3 clients. I have looked at differ..... More

Print this item

  Getting my choices to display fro some reason it isnt working.
Posted by: dgizzly - Oct-24-2022, 12:23 AM - Forum: Homework - Replies (5)

[python]choice = 0

while choice != QUIT:
#Display menu & prompt user for choice
print("\nChoose one of the following options")
print..... More

Print this item

  why does str need a .replace() method?
Posted by: Skaperen - Oct-23-2022, 10:11 PM - Forum: News and Discussions - Replies (4)

why does str need a .replace() method? is code any longer if, instead, there is a builtin function replace() that takes 3 arguments?
..... More

Print this item

  Load image and show in label
Posted by: ko_fal - Oct-23-2022, 10:21 AM - Forum: GUI - Replies (8)

Hello,
I'm new to Tkinter and Python and trying to display an image in a label by selecting from a folder.

[python]from asyncore import read
fr..... More

Print this item

  error message
Posted by: the_wolf_dz - Oct-23-2022, 10:09 AM - Forum: GUI - Replies (4)

hi everybody
I have created an GUI with the QT designer and when i integrate it in the python IDE ( Pycharm or Visuel Studio)
I encounter the follo..... More

Print this item

  How to call a class in other class?
Posted by: 3lnyn0 - Oct-23-2022, 02:52 AM - Forum: General Coding Help - Replies (3)

Hi! I have a problem in which a farmer want to calculate the area of a land when he buying a new land and to add at the existing one.
The shape of la..... More

Print this item

  Treeview actions
Posted by: swanysto - Oct-22-2022, 10:58 PM - Forum: GUI - Replies (4)

So I have been trying to learn a bit of tkinter by reading documentation and watching some videos. I have created a little price list program. It fill..... More

Print this item

  Python output didn't write properly
Posted by: mdmsd2 - Oct-22-2022, 10:06 AM - Forum: Web Scraping & Web Development - Replies (1)

[python]import requests
from subprocess import list2cmdline
import csv
import json

html_output = []
names = []

def pylist_to_list(list):
..... More

Print this item

  Banner text
Posted by: rob101 - Oct-22-2022, 09:08 AM - Forum: Code sharing - Replies (3)

Sharing a tool that a wrote that creates a uniform 'banner'.

I use use this for creating code block markers as well as banners for cli based apps, ..... More

Print this item

  Markdown in posts
Posted by: wavic - Oct-22-2022, 08:12 AM - Forum: Board - Replies (1)

I was away for a long time so I wonder if we can use markdown syntax in posts? I see that I can use those buttons in the editor but I feel more comfor..... More

Print this item

  My code displays too much output when importing class from a module
Posted by: lil_e - Oct-21-2022, 08:49 PM - Forum: General Coding Help - Replies (4)

Hi. This is my first post ever in a Python forum, and I'm a beginner so please bear with me Rolleyes

I have two sets of codes called restaura..... More

Print this item

  Auto-py-to-exe Stuck At 'Initializing'
Posted by: killingtime - Oct-21-2022, 06:36 PM - Forum: General Coding Help - Replies (5)

Hi,

I'm trying to convert a python script to a Windows exe on Windows 7.

I have Python 3.8 installed.
I have auto-py-to-exe installed using the comm..... More


Attached Files

.txt   install.txt (Size: 4.01 KB / Downloads: 466)
Print this item

  [split] why can't i create a list of numbers (ints) with random.randrange()
Posted by: astral_travel - Oct-21-2022, 04:08 PM - Forum: General Coding Help - Replies (7)

hey,

why can't i create a list of numbers (integers) with the random.randrange() method
as in:

[python]
print(random.randrange(0,100,2))
[/py..... More

Print this item

  Python310 and Python37 in my path - should I get rid of 37?
Posted by: omar - Oct-21-2022, 03:03 PM - Forum: General Coding Help - Replies (1)

I have C:\Users\myusername\AppData\Local\Programs\Python\Python310\
and C:\Users\myusername\AppData\Local\Programs\Python\Python37\

In my path env..... More

Print this item

Question Running an action only if time condition is met
Posted by: alexbca - Oct-21-2022, 05:32 AM - Forum: General Coding Help - Replies (5)

Hi everyone! Newbie here, I am using the below script to generate a push notification when I get a delivery at home / someone walks into my garden, us..... More

Print this item

  Brute Forcing RAR file using several PC Paying in Bitcoin
Posted by: Calli - Oct-21-2022, 03:52 AM - Forum: Jobs - Replies (6)

Lets say hypothetically I have a rar file, version 3 to be precise which starts with $RAR3$*0*
tip
[i][size=xx-small]We can extract..... More

Print this item

  pygame screem size
Posted by: Yegor123 - Oct-21-2022, 03:18 AM - Forum: General Coding Help - Replies (11)

Im making my first pygame and Im having toruble with screen size whenever i Hit run I cant see my player hes like hidden underneath the map Here is an..... More


Attached Files

Thumbnail(s)
   
Print this item

  Rename multiple photos with DateTimeOriginal timestamp
Posted by: Stjude1982 - Oct-20-2022, 09:08 PM - Forum: General Coding Help - Replies (2)

Hi,

I'm still very much in the learning phase of creating python programs.

At present, I'm trying to sort Google Photos onto PC but going forwar..... More


Attached Files

.py   RenameGooglePhotos.py (Size: 815 bytes / Downloads: 198)
Print this item

  Hiding username and password on sql
Posted by: tantony - Oct-20-2022, 07:04 PM - Forum: General Coding Help - Replies (10)

In my Python code, I have my username and password entered as plain text. But this is not the best practice since now anyone that see my code also kn..... More

Print this item

  question about micro frameworks
Posted by: mahdiar1382 - Oct-20-2022, 03:45 PM - Forum: General Coding Help - Replies (2)

hello
which micro framework recommended for web design field?
and must we know something special when we want to coding in flask micro framework ?

Print this item

  Def error
Posted by: Led_Zeppelin - Oct-20-2022, 11:44 AM - Forum: General Coding Help - Replies (2)

The following function (method):

[code]
def get_cv_heatmap(validation):
"""
Function to plot heat map of cross validation results
"..... More

Print this item

  method to remove zero digits from fraction in decimal
Posted by: Skaperen - Oct-20-2022, 05:17 AM - Forum: General Coding Help - Replies (17)

when a decimal number is a whole (integral, integer-like) number, it gets converted to string without the ".0". but if i take the result of calculati..... More

Print this item

  Removing leading\trailing spaces
Posted by: azizrasul - Oct-20-2022, 02:41 AM - Forum: General Coding Help - Replies (8)

I obtain daily csv files where the header values contain leading\trailing space values which I want to remove. In some cases, there can be 2 spaces an..... More

Print this item

  convert this List Comprehensions to loop
Posted by: jacklee26 - Oct-20-2022, 02:38 AM - Forum: General Coding Help - Replies (8)

Does anyone know how to convert this List Comprehensions to normal for loop code:
[python]
results = ['A' , 'B', 'C' , 'D']
]for i in [results[c:c+2..... More

Print this item

  Need help editing a PDF
Posted by: omar - Oct-20-2022, 01:49 AM - Forum: General Coding Help - Replies (4)

I want to find out what I can do in Python for editing PDFs.
The PDF's will have many pages, each page with have 4 labels.
I need to add extra info..... More

Print this item

  how to replace OR operator with any
Posted by: mg24 - Oct-20-2022, 01:42 AM - Forum: General Coding Help - Replies (7)

Hi Team,

In below code , I am checking Country name if(Ind,US,Aus) then proceed further else exit.
how to use any operator in below situation.

..... More

Print this item

  Where can I find Python training with reading, lecture, labs and assignments?
Posted by: davidorlow - Oct-19-2022, 06:34 PM - Forum: General Coding Help - Replies (2)

Ok, I'm having a really hard time finding this. I paid a few hundred dollars to take an EdX course. It has mostly the way you'd learn in college, but..... More

Print this item

  ModuleNotFoundError: No module named 'omsdk.sdkproto'
Posted by: donvito7 - Oct-19-2022, 01:19 PM - Forum: General Coding Help - Replies (4)

Can anyone help me to fix this?

I am getting the error like in the subject line.

Traceback (most recent call last):
File "/usr/local/nagios/d..... More

Print this item

  Joining two jupyter notebooks and getting an error!
Posted by: Led_Zeppelin - Oct-19-2022, 12:32 PM - Forum: General Coding Help - Replies (1)

I am using the nbmerge command to join two jupyter notebooks into one larger notebook.

It appears to work. However, when running the new notebook, ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Creating a change table - £0.01-£0.50?
Posted by: MrKnd94 - Oct-19-2022, 12:01 PM - Forum: Homework - Replies (9)

Hello,

I'm trying to complete my workbook for university, but I'm stuck on this question: Write a program that determines how many of each coin ( f..... More


Attached Files

Thumbnail(s)
   
Print this item

  Numpy Structure and Efficiency
Posted by: garynewport - Oct-19-2022, 11:34 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
import matplotlib.pyplot as plt
import matplotlib.cbook as cbook

import numpy as np
import math

SIGMA ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Selenium - Error writing ... 1 hour ago brunox96 FrankSmoot Web Scraping ...
  Error on import: SyntaxEr... Today, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... Today, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... Yesterday, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... Yesterday, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch 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...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
Most views
  The best Prog... 566642
  Tutorial Requ... 461830
  Web Scraping ... 431555
  Newbie with P... 368892
  Thread remain... 341024
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Arush Today
ishani007 Today
blueglasses Today
Kiongi Today
daddatyagi Today

User Panel Messages

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