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,980
» Latest member: Joliekeva
» Forum threads: 38,732
» Forum posts: 175,564

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 43 Guest(s)
Google, Bing, AOL, AOL, deanhystad

Latest Threads
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
1 hour ago
» Replies: 4
» Views: 1,954
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 381
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,013
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,070
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 744
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,051
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,493
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,069
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,524
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,410

 
  How to get object name?
Posted by: bhojendra - Apr-30-2019, 07:23 AM - Forum: General Coding Help - Replies (2)

When I print obj it prints something like:

print(type(obj))
# <class 'some.third.party.ObjectName'>
What I want here is to print ..... More

Print this item

  How to highlight html using python
Posted by: Prince_Bhatia - Apr-30-2019, 07:08 AM - Forum: General Coding Help - Replies (2)

hi,

i have written a code that look for changes in website and produce it's html. but my concern is how can i look highlight the change that has ha..... More

Print this item

  iterating an interator partially then resuming
Posted by: Skaperen - Apr-30-2019, 01:53 AM - Forum: General Coding Help - Replies (3)

i would like to iterate an iterator in a loop that will usually break out part way through. then later, i want another loop to resume that iteration ..... More

Print this item

  Weighting The Python KMeans Procedure
Posted by: zsfeinstein - Apr-29-2019, 10:07 PM - Forum: Data Science - No Replies

Below is a set of sample code for doing the KMeans Cluster analysis in Python:

[python]sample_dat = pd.DataFrame(np.array([[1,0,1,1,1,5],
..... More

Print this item

  charmap codec can't decode byte error with gzipped file in python
Posted by: bluethundr - Apr-29-2019, 09:53 PM - Forum: General Coding Help - Replies (2)

I am attempting to send an email that includes a file in gzip format as an attachment using python.

But I'm getting an error when I try to send the f..... More

Print this item

  matrix by vector
Posted by: mcgrim - Apr-29-2019, 09:40 PM - Forum: Data Science - Replies (8)

This code is supposed to multiply a matrix by a vector without the aid of a .dot function.
In order to make sure I get the right result, I use the @..... More

Print this item

  dictionnary
Posted by: lateublegende - Apr-29-2019, 07:57 PM - Forum: General Coding Help - Replies (1)

I try to make a dict for my code, the dictionnary content the sqaure number and the the value of this square, the dict have 480 value. I need a simple..... More

Print this item

  Basic If statement
Posted by: tinsr - Apr-29-2019, 07:46 PM - Forum: General Coding Help - Replies (2)

Can someone help me figure out what is wrong with the following basic if statement:
------------------------------
>>> Nums=input("Number:")
Numbe..... More

Print this item

  How to rerun script again
Posted by: SteampunkMaverick12 - Apr-29-2019, 07:40 PM - Forum: General Coding Help - Replies (2)

I have finally made a full login system but the issue is that now when I enter option b and fill out my process, it would stop instead of going throug..... More

Print this item

  Install Python on Raspberry Pi 3 B+
Posted by: loren41 - Apr-29-2019, 07:31 PM - Forum: General Coding Help - Replies (4)

Noob wanting to learn Python programming. My interest is focused on text-based document retrieval and data mining. I am 78 years old and have a Maste..... More

Print this item

  Split lines in Paramiko
Posted by: pintas - Apr-29-2019, 04:15 PM - Forum: Networking - No Replies

Hello everyone, good to be here.
First of all, let me start my apologising. This is my first post, and i'm already posting a big one. Sorry for that...... More

Print this item

  reverse list, incl. nested list
Posted by: Livne_ye - Apr-29-2019, 03:08 PM - Forum: General Coding Help - Replies (3)

I am trying to write a code which will generate a nested list and the main list in a reverse order:
1.my_third_list = ["WHAT","IS","THIS",["a nested..... More

Print this item

  Extract a List element
Posted by: NewBeie - Apr-29-2019, 02:19 PM - Forum: General Coding Help - Replies (4)

Hi,

I have this code:

cl = re.findall(r'[claim number]+[0-9]+', claim_num_50)
It gives me back a list [output][' 19', ' 0333', ..... More

Print this item

  Nanpy import error
Posted by: Apretext - Apr-29-2019, 02:09 PM - Forum: General Coding Help - Replies (2)

I've got an odd error when using nanpy. If I open a session of Python, and then load my module and run it, it works fine. If I try and load my module ..... More

Print this item

  How to use factory pattern?
Posted by: bhojendra - Apr-29-2019, 01:50 PM - Forum: General Coding Help - Replies (2)

I'm trying to understand and use factory pattern like:

[python]
class Factory():
@staticmethod
def getObj():
return Drive()

clas..... More

Print this item

  Interpreting Python Code
Posted by: NewBeie - Apr-29-2019, 11:16 AM - Forum: General Coding Help - Replies (3)

Hi,

I have this code:

clientNo = ClientNumber.split("ClientNo", 1)[1][0:50]
I don't know what does the last [0:50] mean, plea..... More

Print this item

  String slicing in python from reverse
Posted by: ift38375 - Apr-29-2019, 06:39 AM - Forum: General Coding Help - Replies (1)

Hi,
I am newbie in this python fourm portal and need some help from experts side.
Suppose i declare string variable i.e name = "david" and perform n..... More

Print this item

  Advice for making a text choose your own adventure
Posted by: olivermcg - Apr-29-2019, 06:04 AM - Forum: Game Development - Replies (1)

Hey i want to learn how to code a choose text your own adventure game and i was wondering if i could get tips on a good place to start

Print this item

  Anaconda
Posted by: ShadySmithy98 - Apr-29-2019, 05:59 AM - Forum: General Coding Help - Replies (3)

I was wondering if their is a lite version of anaconda for python to put on a USB?

Print this item

  get string how it is defined
Posted by: bhojendra - Apr-29-2019, 05:58 AM - Forum: General Coding Help - Replies (10)

I can have any characters inside the string. For eg.

str = "some\" quoted value'foo"
print(str)
# some" quoted value'foo
..... More

Print this item

  Portable Python Programs?
Posted by: GramophoneMimic - Apr-29-2019, 05:47 AM - Forum: News and Discussions - Replies (3)

Hello, I'm new to Python and programming in general and I was wondering if there are any good portable python programs that can be stored on and ran f..... More

Print this item

  cannot import scipy.optimize.Bounds
Posted by: larkypython - Apr-29-2019, 01:10 AM - Forum: General Coding Help - Replies (2)

I used this:
from scipy import optimize
then it is ok to use optimize.minimize
but cannot use optimize.Bounds, cannot..... More

Print this item

  How to graphically represent this function?
Posted by: dc996 - Apr-28-2019, 10:25 PM - Forum: Data Science - Replies (1)

Hi everyone,

I've tried multiple times to represent this function in Python, but I am still unsuccessful.

This is the function:
[python]def CON..... More

Print this item

  try, except, finally ?
Posted by: microphone_head - Apr-28-2019, 08:45 PM - Forum: General Coding Help - Replies (3)

Hi all,

I've been trying to tighten up my code by adding error handling using the try command, but I can't seem to get my head around the "finally"..... More

Print this item

  changing much of my Python code
Posted by: Skaperen - Apr-28-2019, 08:42 PM - Forum: News and Discussions - Replies (6)

416 of my Python files have a line beginning with from __future__. i'm thinking i don't need those lines, anymore. should i remove al..... More

Print this item

  Can't work out parameter format for LibVLC functions
Posted by: Domarius - Apr-28-2019, 07:46 PM - Forum: General Coding Help - Replies (10)

I just need help understanding how to provide the right variable types, by referring to the Python API for LibVLC.

I'm using the ..... More

Print this item

  Read temperature once
Posted by: mada72 - Apr-28-2019, 06:59 PM - Forum: General Coding Help - Replies (2)

Hi,

Im new to python Rolleyes
I have this code found of youtube, it works fine and print the temperature in a loop (until I do CTRL C)
[pyth..... More

Print this item

  Which libraries for generating keyword cloud from results of Google SERP ?
Posted by: 123 - Apr-28-2019, 06:12 PM - Forum: News and Discussions - Replies (4)

Hello!
In Python, generating keyword cloud from results of Google SERP - which libraries, methods can I use, what would be elements to consider?

Print this item

  Import Large CSV File into MySQL
Posted by: bluethundr - Apr-28-2019, 05:26 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to import one column of a large CSV file into MySQL using python 3.7. This is being done as a test run to import the rest of the co..... More

Print this item

  [split] Please help with SyntaxError: invalid syntax
Posted by: Mason - Apr-28-2019, 04:58 PM - Forum: Homework - Replies (1)

Hi,

There is this short code which I have written. The variable Vinf_values is saved in a list. I am trying to evaluate P0 and T0 and here I am usi..... More

Print this item

  What are some pythonic phrases?
Posted by: Nwb - Apr-28-2019, 01:38 PM - Forum: News and Discussions - Replies (7)

I've heard three pythonic phrases namely, "if it looks like a duck.. it's a duck"; "ask for forgiveness not permission"; "duck punching" (guess it's a..... More

Print this item

  Saving multiple plots as pdf
Posted by: mohd_umair - Apr-28-2019, 01:21 PM - Forum: General Coding Help - No Replies

Good afternoon everyone,

I am trying to plot some figures and save them as pdf. For that, I have already written a script and the problem is that it ..... More

Print this item

  Python stopped while creating new jupiter notebook
Posted by: Geetha - Apr-28-2019, 11:08 AM - Forum: Networking - Replies (1)

Dear Team,
Installed Anaconda latest version by following the prerequistes mentioned and as per installation guidelines mentioned in anaconda website..... More

Print this item

  [pygame] Blitting armor and weapons with inventory
Posted by: SheeppOSU - Apr-28-2019, 02:52 AM - Forum: Game Development - Replies (3)

I put an inventory into my game. I do though, have a few problems

problem - The armor does not show on the screen after it is equipped

You can d..... More

Print this item

  Web Scraping Project
Posted by: dyzl3xik - Apr-28-2019, 02:48 AM - Forum: Homework - Replies (5)

Hello,

I am pretty new to Python and for our last semester project, we are to develop a web scraper program. We are to go into the Itunes charts a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error: cannot mix str wit... 1 hour ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
Most views
  The best Prog... 577421
  Tutorial Requ... 500882
  Web Scraping ... 441067
  Newbie with P... 385127
  New Users Int... 369665
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday
stephaniehendrix Yesterday

User Panel Messages

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