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,938
» Latest member: atylerfraces2254
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 44 Guest(s)
Bing, AOL, AOL, snippsat

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,143
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 619
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,537
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 961
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,458
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,301
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,505
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,464
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,612
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,175

 
  Question on True expressions
Posted by: mgreen2251660 - Jun-25-2021, 02:29 PM - Forum: General Coding Help - Replies (2)

I am new to Python and I am taking a course in Python. I have an expression that I do not understand what the answer should be. My instructor gave m..... More

Print this item

  Flattening attribute access
Posted by: ruy - Jun-25-2021, 12:09 PM - Forum: General Coding Help - Replies (5)

Hi there

I have a class PrintValue that contains as attribute an instances of another class PrintMetaData. In ord..... More

Print this item

  Cryptographic message syntax CMS and Qualified Seal
Posted by: arno23 - Jun-25-2021, 11:01 AM - Forum: Networking - No Replies

I would need help with generate CMS and then when is generated, I need to add Qualified seal to thist object/file.

I have ZIP file that is encrypt ..... More

Print this item

  image in label not showing?
Posted by: rwahdan - Jun-25-2021, 09:49 AM - Forum: GUI - Replies (2)

Hi,

I am trying to show image in label but it is not showing.

[python]
image3 = tkinter.PhotoImage(file="1.png")
Label(cvv_screen, text="", im..... More

Print this item

  Reading Multiple text Files in pyhton
Posted by: Fatim - Jun-25-2021, 09:30 AM - Forum: General Coding Help - Replies (1)

I have been working on .txt format files. Almost 13 k files and wanted to extract Age and gender from all the files in separate csv file . I ha..... More

Print this item

  Nested Python functions (Dan Bader's book)
Posted by: Drone4four - Jun-25-2021, 08:56 AM - Forum: General Coding Help - Replies (4)

Check out this script:

[python]
def get_speak_func(volume):
def whisper(text):
return text.lower() + '...'
def yell(text):
return..... More

Print this item

  Why did they put a while loop here?
Posted by: Pedroski55 - Jun-25-2021, 03:21 AM - Forum: Game Development - Replies (2)

I know nothing about pygame, just started learning about it. I got the code below from here[/url[url=https://python-forum.io/thread-34091.html]..... More

Print this item

  Cannot print if 'sys.stdout' is in snipped
Posted by: tester_V - Jun-25-2021, 01:52 AM - Forum: Networking - Replies (2)

Greetings!
Sorry if this is the wrong place for the post!
I'm converting IPs to Hosts, and it works fine but I cannot print anything in the script b..... More

Print this item

  Incorrect Type Error
Posted by: milkycow - Jun-24-2021, 11:53 PM - Forum: General Coding Help - Replies (4)

Hi guys,

I am a Pythong newbie and I am coding using the sasPy package. I am just running an initial script from SAS to test integration and I am ..... More

Print this item

  Statsmodels Multiple Regression Syntax Error
Posted by: Burger - Jun-24-2021, 11:17 PM - Forum: Data Science - Replies (2)

I've been able to use the statsmodels.api regression when assigning variables to x and y with no issues, however, now I am trying to use the statsmode..... More

Print this item

  Best Fit In Python
Posted by: JoeDainton123 - Jun-24-2021, 07:49 PM - Forum: General Coding Help - Replies (2)

Hi all

I was wondering is anyone could give me some guidance on how to solve the following problem.

I have list of numbers that represent temper..... More


Attached Files

Thumbnail(s)
   
Print this item

  making : optional
Posted by: Skaperen - Jun-24-2021, 07:47 PM - Forum: News and Discussions - Replies (3)

is there any case where a compound statement (if, while, for, try, with) can be made without ending with a : character? i cannot find any in the Pyth..... More

Print this item

Smile Help making number analysis program
Posted by: Dainer - Jun-24-2021, 06:54 PM - Forum: General Coding Help - Replies (2)

Hello everybody

I need a code for number analysis. I imagine this can be done in Python and I think it would be rather easy task for somebody famil..... More

Print this item

  Installing Miniforge for Apple m1 Processor
Posted by: Led_Zeppelin - Jun-24-2021, 05:50 PM - Forum: General Coding Help - Replies (2)

I need help in understanding something. I have access to an Apple MacBook Air with an M1 processor. I want to take full advantage
of the M1 process..... More

Print this item

  Problems converting bytes from socket.recvfrom
Posted by: riccardoob - Jun-24-2021, 03:50 PM - Forum: Networking - Replies (1)

I'm trying to convert bytes from the recvfrom function to text but i get this error:
[error]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac ..... More

Print this item

  Syntax errors: Struggling to setup enviroment and load packages
Posted by: AH56 - Jun-24-2021, 12:35 PM - Forum: General Coding Help - Replies (5)

I'm trying to run code that accesses Flickr's API. The code is pre-designed and reportedly works, and it is available here:
https://github.com/ultral..... More

Print this item

  help with project of reading and searching big log file
Posted by: korenron - Jun-24-2021, 09:17 AM - Forum: General Coding Help - Replies (6)

Hello ,
I have a log file that in the end of the day get to ~ 6GB of text
now I want to be able to cut from it a certion windows of time
for exam..... More

Print this item

  add space on variable
Posted by: enigma619 - Jun-24-2021, 08:48 AM - Forum: General Coding Help - Replies (3)

Hi

i've a variable x which must contain 150 characters (every time)
On this variable sometimes I set just "bla" and sometimes "blablabla"
But on ..... More

Print this item

Question trouble with unexpected tokens
Posted by: 8iFwe8wK8 - Jun-24-2021, 08:28 AM - Forum: General Coding Help - Replies (2)

HI. I'am new to python but i was trying to do simple calcluator.
[python]def number1():
print("input first number")
input()
def number2():..... More

Print this item

  just add 2 codes together.
Posted by: lucky511 - Jun-24-2021, 08:24 AM - Forum: General Coding Help - Replies (3)

I need to add 2 codes together, please.
The first code :

[python]import os
import re
import json

from urllib.request im..... More

Print this item

  pyinstaller --onefile
Posted by: mhzr - Jun-24-2021, 06:38 AM - Forum: General Coding Help - Replies (6)

Hello,
I made a simple code and examine it many times on vscode, but when I made .exe file from that by using pyinstaller --onefile, it didn't work...... More


Attached Files

.py   SystemInfo.py (Size: 4.41 KB / Downloads: 503)
Print this item

  Python Help, New User, Computer Automation
Posted by: hexagonalyeti - Jun-24-2021, 05:31 AM - Forum: General Coding Help - Replies (2)

Hey so I am new to python and I am trying to code a specific thing. I am trying to in python run an infinite for loop and within that loop call cmd to..... More

Print this item

  Ever used shiv?
Posted by: Gribouillis - Jun-23-2021, 10:06 PM - Forum: News and Discussions - Replies (1)

I stumbled upon a blog post mentioning the shiv command to package complete python applica..... More

Print this item

  How can I find all combinations with a regular expression?
Posted by: AlekseyPython - Jun-23-2021, 04:48 PM - Forum: General Coding Help - No Replies

Python 3.9.5

I wrote the following code:
[python]pattern_space = '[\s]+'
pattern_name= '(.{4,})'
pattern = pattern_name + pattern_space + '(str..... More

Print this item

  Help converting python qt4 script to qt5
Posted by: Bladeforce - Jun-23-2021, 04:25 PM - Forum: GUI - Replies (6)

Hi,

Could someone help with converting this pyqt4 script to pyqt5 please?
When i run it i get this error:

[error]Traceback (most recent call la..... More


Attached Files

.py   wlcreator.py (Size: 33.36 KB / Downloads: 515)
Print this item

  Create Dict from multiple Lists with duplicate Keys
Posted by: rhat398 - Jun-23-2021, 11:53 AM - Forum: General Coding Help - Replies (10)

I have four lists named designName,creatorName,fabric_names and data the data list consist of multiple duplicate values which I want to map it to it's..... More

Print this item

  Created zipfile without all the subfolder?
Posted by: korenron - Jun-23-2021, 10:04 AM - Forum: General Coding Help - Replies (3)

Helllo ,
I want to create a zip file that contiens only 1 file
this is what I have done:
[python] with ZipFile(ZipLocation, 'w') as zipObj:
..... More

Print this item

Lightbulb [Solved] df.loc: write data in certain rows
Posted by: ju21878436312 - Jun-23-2021, 08:16 AM - Forum: General Coding Help - Replies (1)

I import a text file and would like to write a comment in certain rows, which I access with df.loc.
However, I get the error "[color=#C0392B]# When s..... More


Attached Files

.txt   2021-06-15_data.txt (Size: 14.02 KB / Downloads: 466)
Print this item

  How many boxes fit on a pallette?
Posted by: Pedroski55 - Jun-23-2021, 05:46 AM - Forum: News and Discussions - No Replies

My gf has a new job with a company which exports agro-chemicals.

She needs to know how many cartons fit on a pallette.

The inner dimensions of a 20'..... More

Print this item

  populating a list
Posted by: rwahdan - Jun-23-2021, 05:46 AM - Forum: Data Science - Replies (2)

Hi,

I have a list items and I have some other lists that is done through coding. I need later to check if there are any items in the other lists then..... More

Print this item

  Pexpect timesout before executing whole output
Posted by: eagerissac - Jun-23-2021, 03:30 AM - Forum: General Coding Help - No Replies

I'm new to python and pexpect and I'm writing a script that sends a bunch of commands to a board and prints the output of each command on my terminal...... More

Print this item

  interloper help appreciated combining two python3 scripts to add new conditions.
Posted by: Ricktoddfrank - Jun-22-2021, 10:24 PM - Forum: General Coding Help - No Replies

First off I apologize if I use terminology wrong, I don't know python coding but got help from an expert, currently unavailable, who made me a few com..... More

Print this item

  I have a syntax error!
Posted by: rohes_kaugummi - Jun-22-2021, 09:21 PM - Forum: General Coding Help - Replies (3)

Hello, i have been trying to make a guess the number game as a beginner project. I am very new to coding and wrote the following code:

[python]impo..... More

Print this item

  Hi, I need some guidance with the dialogue for my chatbot
Posted by: aaron10500 - Jun-22-2021, 02:36 PM - Forum: Data Science - No Replies

For my dissertation i am going to be creating a mental health chatbot using TensorFlow. I've seen some people use csv files and others use JSON files ..... More

Print this item

Exclamation Path sacn problem
Posted by: lucky511 - Jun-22-2021, 10:59 AM - Forum: General Coding Help - Replies (10)

I have more than 1 profile in the Chrome browser, so I want to locate a file in all Chrome profiles how?
my code:
[python]def main():
local = o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576422
  Tutorial Requ... 498235
  Web Scraping ... 440334
  Newbie with P... 384212
  New Users Int... 367251
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19
Hershien 09-19

User Panel Messages

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