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,954
» Latest member: bianchiluca116
» Forum threads: 38,725
» Forum posts: 175,520

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 38 Guest(s)
Bing, AOL, Applebot, Google

Latest Threads
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
2 hours ago
» Replies: 10
» Views: 29,144
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,299
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 185
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 608
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 208
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 765
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,020
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,270
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,633
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,194

 
  How to write a code to open and read text file by clicking on the "text file"
Posted by: kavindu - Jul-03-2018, 07:27 AM - Forum: General Coding Help - Replies (4)

I'm a windows user. The notepad is the default program for.txt files. I need to write a code to open and read a text file by clicking on the [b]text f..... More

Print this item

  Problem with assigning directory of a file based on cell name
Posted by: mmaz67 - Jul-03-2018, 07:09 AM - Forum: General Coding Help - Replies (3)

Hi, I wanted to create a script that can opened a text file, c_name.txt where the content of the text file would be list of cell names. After i opened..... More

Print this item

  Introducing JackSON
Posted by: r0hi7 - Jul-03-2018, 04:32 AM - Forum: News and Discussions - Replies (1)

Python based secure JSON config manager written in python. JackSON source

Print this item

  Threading inside multiprocessing
Posted by: kannanuv234 - Jul-03-2018, 01:55 AM - Forum: General Coding Help - No Replies

[python]#!/usr/bin/env python2.7
import multiprocessing
from threading import Thread

def do_stuff(i,s):
print ("work from thread {} - list is {}"..... More

Print this item

  VSCode want to change to terminal window.
Posted by: Larz60+ - Jul-03-2018, 01:49 AM - Forum: Bar - Replies (4)

I have really become fond of VS code, except for one thing which I'd like to change. I expect that there is a way to do this, but haven't been able to..... More

Print this item

  switch to python3
Posted by: Skaperen - Jul-03-2018, 12:55 AM - Forum: Code sharing - No Replies

[python]if bytes == str:
import os,sys
for p in os.environ.get('PATH','').split(':'):
if p and os.path.exists(p+'/python3'):
..... More

Print this item

  python function run_pipe_line()
Posted by: Skaperen - Jul-03-2018, 12:42 AM - Forum: Code sharing - No Replies

file runpipeline.py:[python]def run_pipe_line(*a):
from subprocess import PIPE, Popen
if len(a) == 1 and isinstance(a[0],(list,tuple)):
..... More

Print this item

  For loop (adding strings to a list trouble)
Posted by: eoins - Jul-03-2018, 12:29 AM - Forum: General Coding Help - Replies (2)

When I run the following code, the user is asked 3 times "Name a hobby: ", so I enter fishing, hiking, coding then hit enter. When I then print the li..... More

Print this item

  Batch network configuration/ verification task using Python
Posted by: anonyfate - Jul-03-2018, 12:27 AM - Forum: Networking - Replies (1)

This simple Python code reads a configuration/ commands file (script.txt) and a CSV formatted inventory file (inventory.txt) and then apply the config..... More

Print this item

  ok to post functions/classes/modules?
Posted by: Skaperen - Jul-02-2018, 11:52 PM - Forum: News and Discussions - Replies (2)

is it OK to post Python functions, classes, and module stuff that are not really scripts (stuff you have to write some code for to use) in [u]C..... More

Print this item

  How to call the values at the end of a text string?
Posted by: Dieselkaine - Jul-02-2018, 08:30 PM - Forum: General Coding Help - Replies (2)

Total beginner.
Cant get the last line to work as intended.
want it to print the text and the value
something like this
alpha 5

Also i don't un..... More

Print this item

  .pth file does not show up in sys.path when configuring path.
Posted by: arjunsingh2908 - Jul-02-2018, 08:28 PM - Forum: General Coding Help - Replies (2)

Hi,

I am just beginning to learn Python and I ran into a problem related to configuring path. Here is a quick background and other details:

- I ..... More

Print this item

  what to order to get started with Odroid HC 2 NAS things
Posted by: apollo - Jul-02-2018, 05:53 PM - Forum: Bar - Replies (1)

hello dear Python expets

what to order to get started with Odroid HC 2 NAS things


pretty new to SBC- things. I am about to start with Odroid H..... More

Print this item

  Discord bot problem
Posted by: EdwinAlador - Jul-02-2018, 05:04 PM - Forum: General Coding Help - Replies (2)

So today im trying to learn the basics of discord bots & coding, But i get this error when i try to run my bot.
screenshot https://gyazo.com/264d1794..... More

Print this item

  slenium instergram auto loggin
Posted by: mister_mister - Jul-02-2018, 01:38 PM - Forum: Web Scraping & Web Development - Replies (1)

[hey what i am trying to do is code an instergram bot but i have a lot of problam i am using selenium to log in and try other ways but still not succ..... More

Print this item

  multiple hits !
Posted by: tyler - Jul-02-2018, 01:01 PM - Forum: Game Development - Replies (7)

im trying to get my aliens to get hit multiple times before dissapearing, i have given the aliens 2 hp and my bullet dmg is 1 so it should take two hi..... More

Print this item

  Stynax error where stynax is fine :(
Posted by: Fliz - Jul-02-2018, 12:11 PM - Forum: General Coding Help - Replies (1)

so I'm new to python and as a project I decided to make a DoSer with socket and _thread modules
but I keep getting a syntax error in a perfect line o..... More

Print this item

  Frequency Reader?
Posted by: mekha - Jul-02-2018, 12:11 PM - Forum: Data Science - Replies (8)

a sound is played in real time then in the window resulting a frequency number 188.000 Hz, 220.000 Hz, etc and keep goes on while the sound is still p..... More

Print this item

  XMLRPC 'client' error
Posted by: SamLearnsPython - Jul-02-2018, 11:58 AM - Forum: General Coding Help - Replies (19)

I'm trying to create a wordpress post through XMLRPC but getting this error

[python](env) sam@sam-H81M-S ~ $ python3
Python 3.5.2 (default, Nov 23..... More

Print this item

  Parsing and adding values to table
Posted by: raulklk - Jul-02-2018, 11:34 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have a output file called output.txt and i wanted to parse it with specific keyword and if its there then below table should be created ..... More

Print this item

  How can I add files to GitLab with `python-gitlab`?
Posted by: bingobingolotto - Jul-02-2018, 11:09 AM - Forum: Web Scraping & Web Development - Replies (2)

Using Django, I’d like to sync the files in the database with git repositories on my GitLab instance via python-gitlab.

My code:

[python]
imp..... More

Print this item

  Need your help to fix my database relationship in Django model
Posted by: PrateekG - Jul-02-2018, 11:08 AM - Forum: Web Scraping & Web Development - No Replies

Hi All,

I have created a simple database admin panel (Django2.0.6+Python3.6+Mysql5.7) where admin can operate create/edit/delete operations of data..... More

Print this item

  Looking for (i) Full Stack Developer and (ii) Android Developer
Posted by: Scholr - Jul-02-2018, 10:31 AM - Forum: Jobs - Replies (2)

Scholr is looking to hire experienced developers for the roles of Full Stack Developer and Senior Android Developer. We are one of the fastest growing..... More

Print this item

  Cage filling algorithm - Python
Posted by: bnbehera - Jul-02-2018, 08:58 AM - Forum: General Coding Help - Replies (3)

Cage filling exercise - Design an algorithm to fill a cage as efficiently as possible Within Tesco’s supply chain, utilisation of space is key to maxi..... More

Print this item

  How do you create an advanced filtering system?
Posted by: KirkmanJ - Jul-02-2018, 08:34 AM - Forum: Web Scraping & Web Development - No Replies

I would like to create a filter similar to that found on shopping websites.

See left hand side of: https://uk.rs-online.com/web/c/?sra=oss&r=t&sea..... More

Print this item

  Understanding slice copying in for loop
Posted by: yksingh1097 - Jul-02-2018, 07:15 AM - Forum: General Coding Help - Replies (5)

I was studying for loops ,there it was said that
"If you need to modify the sequence you are iterating over while inside the loop (for example to du..... More

Print this item

  cannot replace with np.nan
Posted by: ankurk017 - Jul-02-2018, 06:01 AM - Forum: Data Science - Replies (3)

a=np.random.randint(15,size=[2,5])
b=np.random.random([2,5])
b[0,2]=np.nan
a[0,2]=np.nan
I can easily replace any indices of b with nan. But if th..... More

Print this item

  Change resolution of windows system
Posted by: sarangj - Jul-02-2018, 05:56 AM - Forum: GUI - Replies (3)

Hi,

I have to change or set the resolution of windows using python.


Please provide the solution.
Thanks in Advanced.

Print this item

  Zen of Python violated by Python
Posted by: hou32hou - Jul-02-2018, 05:55 AM - Forum: News and Discussions - Replies (18)

Zen of Python violated by Python

According to Zen of Python, [i][b]Explicit..... More

Print this item

  how to run the dialog from another py file
Posted by: royer14 - Jul-02-2018, 05:33 AM - Forum: GUI - No Replies

this my code, how do you think I would?
[python]
class MainFrame(wx.Frame):
""""""

#----------------------------------------------------..... More

Print this item

  from List to BeautifulSoup , Homework
Posted by: RPC - Jul-02-2018, 05:27 AM - Forum: Web Scraping & Web Development - Replies (6)

Hello everyone, I hope not to be annoying.
I am taking basic python lectures and I have a homework where I am asked to return a Json Dump of some inf..... More

Print this item

  How to exclude characters when counting digits
Posted by: juliabrushett - Jul-02-2018, 05:01 AM - Forum: Homework - Replies (19)

Hello
I am trying to write a program that will count only numeric digits within a string, excluding all letters. What I have currently counts EVERYT..... More

Print this item

  How to save uploaded image url in database from Django?
Posted by: PrateekG - Jul-02-2018, 04:57 AM - Forum: Web Scraping & Web Development - Replies (14)

Hi All,

I have implemented a functionality-upload image to S3 from Django2.0.6+Python3.6+MySql.
And this functionality is working fine.
Now I wan..... More

Print this item

  parameter in function being involuntarily converted to str??
Posted by: juliabrushett - Jul-02-2018, 03:17 AM - Forum: Homework - Replies (8)

My program is to take in two numbers from a user, then sum all the values shared between those two numbers. I am not sure why my program isn't runnin..... More

Print this item

  Error?
Posted by: juliabrushett - Jul-02-2018, 03:07 AM - Forum: Homework - Replies (9)

The object of my program is to calculate one side of a triangle using pythagorean theorem. I feel like my code should work, but I keep receiving this..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip install requests does... 2 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  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...
Most views
  The best Prog... 576793
  Tutorial Requ... 499173
  Web Scraping ... 440579
  Newbie with P... 384548
  New Users Int... 368426
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bianchiluca116 Today
ShanePulse Today
Jorgecog Today
adamsmith12 Today
Ronny Today

User Panel Messages

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