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,984
» Latest member: Robertbop
» Forum threads: 38,734
» Forum posts: 175,572

Full Statistics

Online Users
There are currently 62 online users.
» 0 Member(s) | 59 Guest(s)
Bing, AOL, AOL

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 43
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 10:37 PM
» Replies: 5
» Views: 168
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,035
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 448
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,081
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,148
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 826
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,107
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,548
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,138

 
  Removing items from list
Posted by: slackerman73 - Dec-12-2019, 03:19 AM - Forum: Homework - Replies (8)

I'm trying to remove an item from the passwords list.

I keep getting Traceback (most recent call last):
passwords.remove(websitetodelete) #..... More

Print this item

  Dynamically Copy and paste column
Posted by: Patriot17 - Dec-11-2019, 11:02 PM - Forum: General Coding Help - Replies (3)

Hello all,
I am new to the forum and python I am seeking some assistance as I have searched and am not able to find the answer I need. What I am doi..... More

Print this item

  help for escape sequences
Posted by: NewPi - Dec-11-2019, 10:51 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm new in programming and python.
So I have a question for escape sequences.

If you want to print a backslash, you have to use an escap..... More

Print this item

  Pass Tuple as a Slice
Posted by: nagymusic - Dec-11-2019, 10:47 PM - Forum: General Coding Help - Replies (2)

I'd like to pass a tuple (2, 3) as a parameter value into a function (via array variable below), so that it replaces the slice value 2:3 in the third ..... More

Print this item

  Function
Posted by: gray1306 - Dec-11-2019, 08:20 PM - Forum: General Coding Help - Replies (3)

Hello, could someone let me know where am I going wrong with the below code please?
The programs is supposed to ask the user for a number input to ma..... More

Print this item

  How to create correct scatter plot for PCA?
Posted by: LK91 - Dec-11-2019, 07:53 PM - Forum: Data Science - No Replies

[img]https://www.bing.com/images/search?view=detailV2&insightstoken=bcid_RC1MdIex7LYAjXGBI8gogj9E6aU6.....08*ccid_LUx0h7Hs&form=WPTOVS&idpp=wptovs&iss..... More

Print this item

  why is this dictionary giving a Keyerror?
Posted by: philipbergwerf - Dec-11-2019, 07:46 PM - Forum: General Coding Help - Replies (1)

Hello I have a question, I don't understand why the following code gives a Keyerror because google says "What a Python KeyError Usually Means. A Pytho..... More

Print this item

  Numpy saving and loading introduces zeros in the middle of every element
Posted by: DreamingInsanity - Dec-11-2019, 07:21 PM - Forum: Data Science - No Replies

I am do a simple numpy saving and loading test with this code:
[python]a = np.array([[[10,10,10], [10, 10, 10]], [[10,10,10], [10,10,10]]])
print(a)..... More

Print this item

  Problem with simple 3D Vektor calculation
Posted by: Pythocodras - Dec-11-2019, 07:18 PM - Forum: General Coding Help - No Replies

Hello!

I am trying to do a simple vector calculation. But somehow it is not correct an I can not find the error.
Basically I have a vector with a ..... More

Print this item

  Nvidia or (25% better for the price) Radeon GPU for Python Data Science
Posted by: gheek - Dec-11-2019, 05:19 PM - Forum: Data Science - No Replies

Hi,

I am fairly new to python and loving it. I use Numba to speed up code but would like to invest in a GPU that's better than my 3GB GTX 780.

..... More

Print this item

  Chat bot
Posted by: akanowhere - Dec-11-2019, 12:37 PM - Forum: General Coding Help - Replies (16)

I need a help with this code:
[python]
from time import sleep
from selenium.webdriver.common.by import By
from selenium import webdriver
from sel..... More

Print this item

  easy way to paginate --help text output?
Posted by: Skaperen - Dec-11-2019, 12:18 PM - Forum: News and Discussions - Replies (1)

i'm going around adding help text to many of my scripts with support added for --help. in some cases, it will output too much text. ..... More

Print this item

  Not equal a dictionary key value
Posted by: bazcurtis - Dec-11-2019, 11:56 AM - Forum: General Coding Help - Replies (2)

I have the follow code that works fine

[python] if 'bad' == computer_dictionary['threats']:
get_threats(computers_url, computer_dictio..... More

Print this item

  How to take the rest of indeces
Posted by: dervast - Dec-11-2019, 11:31 AM - Forum: General Coding Help - Replies (1)

Hi all,
I am using the following method to take elements from a list.

this method takes from the list classes_samples the indexes that are given ..... More

Print this item

  Networking
Posted by: archer491 - Dec-11-2019, 10:17 AM - Forum: Networking - No Replies

Hi guys, I am very intrigue with this behavior that i don't understand, so if anyone please explain to me why this happed please …
i wrote a python 2..... More

Print this item

  hex file to binary or pcap to binary
Posted by: baran01 - Dec-11-2019, 09:45 AM - Forum: General Coding Help - Replies (1)

I have searched my questions a lot but I couldn't find any solutions, so here's my questions:

I have exported some txt files from pcap files using ..... More

Print this item

  huge and weird values after applying some calculations
Posted by: karlito - Dec-11-2019, 09:06 AM - Forum: Data Science - Replies (2)

OK guys,

The values I got for some columns are just too huge other are in day/month format (see excel picture) and I was wondering why.
Here is my..... More

Print this item

  problem with mapnik in anaconda python 2: from _mapnik import * ImportError: DLL load
Posted by: parsley - Dec-11-2019, 07:50 AM - Forum: General Coding Help - No Replies

I'm using anaconda to write geographic programs, so I need to use packages like mapnik.
After installing mapnik in anaconda2, it started to error...F..... More

Print this item

  Compare two lists. Count larger values
Posted by: dervast - Dec-11-2019, 06:56 AM - Forum: Data Science - Replies (2)

Hi all
I have two lists A and B
and I want to compare them element-wise, to check how more often (as percentage) list A has a larger value than list..... More

Print this item

  List comprehension. Shor for loop version
Posted by: dervast - Dec-11-2019, 06:30 AM - Forum: General Coding Help - Replies (1)

Hi all,
I have read about list comprehensions
and I was wondering if my simple for loop below can be reduced to a list comprehension in python:

T..... More

Print this item

  Comparing columns of Matrix stored in .txt files
Posted by: JoelFooCJ - Dec-11-2019, 05:28 AM - Forum: General Coding Help - Replies (2)

I have 2 separate .txt files displaying 2 matrices each:

Matrix A:
[python]
1 1.0 0 3851.549175736092 5761.18503664513 0.0 1192.84
2 0.906100.03..... More

Print this item

  prevent getting blocked
Posted by: maneesh7787 - Dec-11-2019, 04:53 AM - Forum: Web Scraping & Web Development - Replies (3)

HI,

Actually, I am scrapping a website in python using selenium and beautiful soup, and I am able to scrape it as well but many times it happens th..... More

Print this item

  Selenium returning web element instead of desired text
Posted by: newbie_programmer - Dec-11-2019, 03:08 AM - Forum: Web Scraping & Web Development - Replies (2)

I just started web scrapping and decided to play around with Selenium. Below is the code I wrote to just login to the website and attempt to grab some..... More

Print this item

  what happened to these string?
Posted by: Skaperen - Dec-11-2019, 01:52 AM - Forum: General Coding Help - Replies (2)

i coded this and ran it in python3:

a = """foo"""
"""bar1"""
"""bar2"""
"""bar3"""
print(a)
it ran without any exception an..... More

Print this item

  How can I Open and close .py file from python scripts
Posted by: SayHiii - Dec-11-2019, 01:36 AM - Forum: General Coding Help - Replies (9)

Here is my code:
[python] if mybuffer == "b'Python'":
print("Python File Opening")
thislist = [r'"py_exe.py"', r'"MQTT_pub.py"']..... More

Print this item

  mapping-camera-coordinates-to-a-2d-floor-plan
Posted by: fauveboyxuuki - Dec-10-2019, 10:34 PM - Forum: General Coding Help - No Replies

After following this blog: https://zbigatron.com/mapping-camera-coo...loor-plan/ there are a couple of things I could do with more supp..... More

Print this item

  Django & Python app
Posted by: A1988 - Dec-10-2019, 09:09 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm working on a project Django + python.
Set-up:
- Front-end: web templates (html/bootstrap)
- Web-framework: Django
- Back-end: calcu..... More

Print this item

  rect object not loading
Posted by: BlueClaw - Dec-10-2019, 09:09 PM - Forum: Game Development - Replies (2)

Nothing is loading, and all I get is a blank surface. Please help.
[python]#touhou rectangle
import os
import pygame
pygame.init()


win = pyga..... More

Print this item

  Python Parameter inside Json file treated as String
Posted by: dhiliptcs - Dec-10-2019, 07:28 PM - Forum: General Coding Help - No Replies

I have a Python Script which extracts the data from XL sheet(using Pandas) and finally renames the Output file name into other name.
My config file i..... More

Print this item

  Cleanest Way to Cancel a ThreadPool
Posted by: SvetlanaofVodianova - Dec-10-2019, 06:25 PM - Forum: General Coding Help - No Replies

I have a backup script that I run weekly. Each folder that gets copied is independent of the others, one folder doesn't have to wait on the previous f..... More

Print this item

  Convert .py to .exe
Posted by: arthur_cti - Dec-10-2019, 06:02 PM - Forum: General Coding Help - No Replies

Hello, I have a problem, I would like to convert my simple (.py) file to an .exe file, but I follow pyinstaller's instructions and I can't execute the..... More

Print this item

  Armour is not working?
Posted by: Piethon - Dec-10-2019, 05:53 PM - Forum: Game Development - Replies (17)

Hello everybody,

since a couple of weeks, I am trying to add armour into my game. But it not seems to be working.
The damage that the mob does, sh..... More

Print this item

  How to access class variable? instances vs class
Posted by: drSlump - Dec-10-2019, 03:36 PM - Forum: General Coding Help - Replies (5)

Hello everyone, I am learning OOP in python, specifically class variables. It is clear to me what they are, but I do not get why they should be access..... More

Print this item

  How can I measure progress and display it in the progress bar in the interface?
Posted by: Matgaret - Dec-10-2019, 03:26 PM - Forum: GUI - Replies (2)

Hello. I created a graphic interface using QtDesigner, which, when you press the OK button, runs a script that sequentially runs many programs.
The s..... More

Print this item

  Select single letters from string based on separate string
Posted by: Jpen10 - Dec-10-2019, 03:10 PM - Forum: General Coding Help - Replies (3)

I've done this in Excel using the =Lookup({}) function, but have no clue how to in Python. String 1 (12 digits): 085236752048. String 2 (10 letters): ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 4 hours ago bimosora Pedroski55 General Codin...
  Parse Markdown / get the ... Yesterday, 22:37 SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577459
  Tutorial Requ... 501166
  Web Scraping ... 441081
  Newbie with P... 385156
  New Users Int... 369778
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Robertbop Today
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday

User Panel Messages

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