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,403
» Latest member: asonpitt1039
» Forum threads: 38,827
» Forum posts: 176,040

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 40 Guest(s)
Bing, Mojeek, Google, AOL, Facebook, yoanselcp

Latest Threads
German Relative Clauses P...
Forum: General Coding Help
Last Post: asonpitt1039
12 minutes ago
» Replies: 0
» Views: 11
LhanePulse
Forum: General Coding Help
Last Post: Stephenchers
3 hours ago
» Replies: 0
» Views: 24
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Yesterday, 12:38 PM
» Replies: 2
» Views: 189
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 12:32 PM
» Replies: 29
» Views: 15,754
Create dataframe from the...
Forum: Data Science
Last Post: JassicaElla60
Yesterday, 12:31 PM
» Replies: 8
» Views: 3,668
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 183
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 150
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,197
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 228
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,640

 
  Automation in calculations
Posted by: interdisciplinary - Dec-10-2020, 11:14 AM - Forum: General Coding Help - Replies (5)

Dear members,

Kindly I would like to inform you that I am working on a little project to automate a calculation process. The idea is that the progr..... More

Print this item

  Autocompletion for Python in Visual Studio
Posted by: user3481 - Dec-10-2020, 11:12 AM - Forum: Bar - Replies (1)

I try Visual Studio (not Visual Studio Code) to program in Python.
But autocompletion doesn't work for some cases.
How to set it up?
Here is a simp..... More

Print this item

  how to automate sending bulk emails from an excel file or a calc-file
Posted by: apollo - Dec-10-2020, 10:57 AM - Forum: General Coding Help - No Replies

hello dear pythonists - dear friends, Smile

I want to automatically send custom/personalized emails to a list of recipients - we can take exc..... More

Print this item

  List of error codes to find (and count) in all files in a directory
Posted by: tester_V - Dec-10-2020, 04:25 AM - Forum: General Coding Help - Replies (8)

Greetings!
I have a list of error codes and I'm trying to find/count each error in each file and print them like this
"error - 1002x01 - 11"
"erro..... More

Print this item

  Complicated
Posted by: ComputerAstronaut - Dec-10-2020, 03:08 AM - Forum: General Coding Help - Replies (1)

What's the most complicated thing about Python that you ever had to learn? Is there a point where you know it all?

Print this item

  What is the best environment to use?
Posted by: ComputerAstronaut - Dec-10-2020, 01:50 AM - Forum: General Coding Help - Replies (4)

What's the best environment to use for Python? I'm using the default IDLE and I'm not a huge fan, I'm seeing alot of different ones that look way bet..... More

Print this item

  listing file that pip installs upgrades
Posted by: Skaperen - Dec-10-2020, 01:32 AM - Forum: News and Discussions - Replies (1)

when i install or upgrade a package using pip, i want to have it extract a list of all the files is there an option to get that during the install o..... More

Print this item

  How to get continuous movement whilst using State Machine
Posted by: cjoe1993 - Dec-09-2020, 11:10 PM - Forum: General Coding Help - Replies (2)

I am having an issue getting continuous movement whilst using metulburr's state machine code.
As of now, holding down a key will not cause continuous..... More

Print this item

  Would you prefer two 'if' statements or an 'if' and an 'else' statement?
Posted by: AnunnakiKungFu - Dec-09-2020, 10:46 PM - Forum: General Coding Help - Replies (6)

[python]
from tkinter import *
import tkinter.messagebox

root = Tk()

tkinter.messagebox.showinfo("This is the window title!","This is some imp..... More

Print this item

  python3.9 installation missing files kali@win10
Posted by: shajimv - Dec-09-2020, 07:40 PM - Forum: Networking - Replies (1)

I am getting below error while trying to install p3.9 on kali linux installed on windows10. Has any one encountered these errors. The errors says abou..... More

Print this item

  How to merge all the files in a directory in to one file
Posted by: sutra - Dec-09-2020, 07:03 PM - Forum: General Coding Help - Replies (3)

I have a bunch of .log in the directory /home/vs/vs_work2/Chi_DEPB/
I want to merge them into a single file.

output_file.txt..... More

Print this item

  Rocket will only move in two directions
Posted by: djwilson0495 - Dec-09-2020, 05:52 PM - Forum: Game Development - Replies (7)

I'm trying to make a simple game where a rocket can move in 4 directions. however currently it only moves left and right even when pressing the up or ..... More

Print this item

  Merging all file_name.log's files from directory to one and search “PerformanceINFO"
Posted by: sutra - Dec-09-2020, 05:09 PM - Forum: General Coding Help - No Replies

My question is: Following question, I want to achieve it in python although I have done this in bash(i have added my code at the end) but I wan..... More

Print this item

  Basic client server code question
Posted by: swisscheese - Dec-09-2020, 04:24 PM - Forum: Networking - Replies (4)

# This is a simple python web server which displays a button and “Hello”.
# How can I modify the code so that when I click the button the webpage sh..... More

Print this item

  Best distro for old 8' windows tablet?
Posted by: masonjones26 - Dec-09-2020, 03:59 PM - Forum: Bar - No Replies

Hi

I'm looking for Linux with the best chance to work with touch controls straight out of the box.

I bought Z3735F/2048MB/32GB tablet that doesn..... More

Print this item

  problem on creating a small game
Posted by: nayo43 - Dec-09-2020, 02:20 PM - Forum: Homework - Replies (5)

hello, i am making a little card game like hearstone more or less.
but i encounter a difficulty when i try to fight the cards.
I do not understand a..... More

Print this item

  Save/load cargame
Posted by: bilalkh12345 - Dec-09-2020, 01:26 PM - Forum: Game Development - Replies (3)

Hello guys I am creating a simple 2d car game with pygame in which you have to dodge the other cars in front by turning right or left with different l..... More

Print this item

  extract particular strings into a variable
Posted by: lokesh - Dec-09-2020, 10:38 AM - Forum: General Coding Help - Replies (3)

Hi,

I have a requirement to get the string data like below.

str = "dsrc, combo, dsrc_hist, mapping, combo_hist"

If a particular value cont..... More

Print this item

  freeOpcUa - get value of subscription
Posted by: Johna - Dec-09-2020, 08:35 AM - Forum: General Coding Help - No Replies

Hi,

first of all I'm new in this forum and also new to python.

I've set up an OPC UA client in Pyhon by using the freeOpcUa library.

https:..... More

Print this item

  Using Metulburr's state machine, having a lag issue with events
Posted by: cjoe1993 - Dec-09-2020, 04:13 AM - Forum: General Coding Help - Replies (4)

Hi, I am using Metulburr's state machine for a project. I have an event that is lagging when NOT coded directly into the ..... More

Print this item

  Can you please explain what the part after import sys is doing?
Posted by: Pedroski55 - Dec-09-2020, 03:32 AM - Forum: General Coding Help - Replies (3)

Actually, I'm only trying to use the Python wc module to count words in a text file.

wc('/proc/cpuinfo') works nicely in Idle!

But I found this..... More

Print this item

  nbconvert and toc threshold
Posted by: milliewoo - Dec-09-2020, 02:05 AM - Forum: News and Discussions - Replies (3)

Hello Everyone!

I would like to convert my jupyter notebook (with toc) to a single html (images embeded) with the following command:

jupyter nbconve..... More

Print this item

  Latest file with a pattern produces an error
Posted by: tester_V - Dec-09-2020, 01:05 AM - Forum: General Coding Help - Replies (4)

Hi,
I'm trying to find the latest file in a directory but only if a file has a digit in its name.
I globbed the files that have "digit/digits" in th..... More

Print this item

Question dict value, how to change type from int to list?
Posted by: swissjoker - Dec-08-2020, 11:37 PM - Forum: General Coding Help - Replies (3)

I have a dictionary, and one of the keys currently has 1 as value, so the value side is an int. I'm trying to make the value side a list so it can hav..... More

Print this item

  how to return False in ternary condition
Posted by: KEYS - Dec-08-2020, 10:21 PM - Forum: General Coding Help - Replies (7)

The code below is running inside a while True loop

if play=='y':
    print('ok')
else:
    return False
I would like to write ..... More

Print this item

  Generating random business cards
Posted by: Inkanus - Dec-08-2020, 09:23 PM - Forum: General Coding Help - Replies (2)

Hello everyone. I can't write a function that generates random business cards in a python's faker. The function is to assume two parameters: the type ..... More

Print this item

  Stop import from executing function, but allow the function to execute from tk btn.
Posted by: MrBitPythoner - Dec-08-2020, 08:58 PM - Forum: GUI - Replies (4)

Hi,

I have python project I am building. It includes a main.py and several other .py files. When I import these other files into main.py, the impor..... More

Print this item

  Sound Approach for Running a Shell Command?
Posted by: matt_the_hall - Dec-08-2020, 08:31 PM - Forum: General Coding Help - Replies (8)

Hello,

I'm trying to use a python script to set an At job in the shell, and I am wanting to make sure my approach is sound. My understanding is tha..... More

Print this item

  Help with my code due 11:59 pm, can you tell me where I went wrong and help fix it?
Posted by: shirleylam852 - Dec-08-2020, 07:23 PM - Forum: Homework - Replies (1)

[python]
url = 'http://nancymcohen.com/csci133/cpiai.txt'
file = urllib.request.urlopen(url)
lines = file.readlines()
file.close()

cpi = {}
fo..... More

Print this item

  PyGame
Posted by: kat_gamer - Dec-08-2020, 07:12 PM - Forum: Game Development - Replies (8)

Hi, so I'm having a bit of trouble exiting the Pygame window I created.
I'm pretty new to python so I assumed this would be an issue Here's the code..... More

Print this item

  Error on Python Version?
Posted by: ErnestTBass - Dec-08-2020, 07:05 PM - Forum: General Coding Help - Replies (6)

[code]
#per SGD classifier i dati devono essere numerically encoded, not dict
from sklearn.linear_model import SGDClassifier
clf = SGDClassifier()..... More

Print this item

  how to change the range of read CSV file every time python file runs
Posted by: greenpine - Dec-08-2020, 05:52 PM - Forum: General Coding Help - Replies (6)

Hello;

I have a function that uses data from CSV file row by row, until the range has been used.

[Edited]
however I want to use the rest of rows of ..... More

Print this item

  Getting a ship to move in pygame
Posted by: djwilson0495 - Dec-08-2020, 05:41 PM - Forum: Game Development - Replies (2)

I'm trying to make a basic alien invasion game but at the moment my ship won't move left to right. I'm not sure why as it was moving before. Can anyon..... More

Print this item

  how to print all data from all data array?
Posted by: korenron - Dec-08-2020, 03:16 PM - Forum: General Coding Help - Replies (3)

Hello,
maybe the names is incorrect so I will show in example
[python]
x = [{'id': '*1F010121', 'name': 'hotspot/Fonts', 'type': 'directory', 'creat..... More

Print this item

  An absolute beginner
Posted by: sivasiba - Dec-08-2020, 01:51 PM - Forum: News and Discussions - Replies (6)

Hello all,
sorry if this has been asked before, I tried to search google and this forum for similar inquiry but every tutorial I came across always ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  German Relative Clauses P... 12 minutes ago asonpitt1039 asonpitt1039 General Codin...
  LhanePulse 3 hours ago Stephenchers Stephenchers General Codin...
  a function to watch files Yesterday, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... Yesterday, 12:32 Pavel_47 OtiliaGen General Codin...
  Create dataframe from the... Yesterday, 12:31 Calab JassicaElla60 Data Science
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
Most views
  The best Prog... 580501
  Tutorial Requ... 520321
  Web Scraping ... 442811
  Newbie with P... 387031
  New Users Int... 386912
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
asonpitt1039 Today
Stephenchers Yesterday
JassicaElla60 Yesterday
bryanptrovz7447 Yesterday
oliviajuior7959 01-01

User Panel Messages

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