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,982
» Latest member: miriamwilliam
» Forum threads: 38,733
» Forum posts: 175,565

Full Statistics

Online Users
There are currently 54 online users.
» 1 Member(s) | 47 Guest(s)
Google, Bing, Mojeek, Facebook, AOL, AOL, miriamwilliam

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
2 hours ago
» Replies: 0
» Views: 45
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
8 hours ago
» Replies: 4
» Views: 2,009
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 420
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,054
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,118
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 778
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,081
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,527
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,103
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,567

 
  Type error when reading in different data types on an __init__ method
Posted by: Dylanmull - May-09-2019, 11:28 AM - Forum: General Coding Help - Replies (3)

I have the following task to complete:
Making appropriate use of your Duration class write an MP3Song class to
model an MP3 song. Every song has an ..... More

Print this item

  Keras + Matplotlib causing crash
Posted by: spearced - May-09-2019, 10:40 AM - Forum: Data Science - Replies (3)

Hi all,

I'm working my way through Francios Chollet's 'Deep Learning with Python', which teaches Deep Learning through the Keras frontend for Tenso..... More

Print this item

  zip lists with condition
Posted by: 3Pinter - May-09-2019, 09:08 AM - Forum: General Coding Help - Replies (6)

Guys,

Can I zip lists but ONLY if a list isn't empty?

[python]
a = [1,2,3,4,5]
b = [ [], [], ["a","b"], ["e","h"], []]
c = zip(a, b)
d = []..... More

Print this item

  Print Numbers starting at 1 vertically with separator for output numbers
Posted by: Pleiades - May-09-2019, 08:45 AM - Forum: General Coding Help - Replies (3)

These numbers scroll vertically down my cmd screen after I hit execute from Geany. Is it possible for python to include numbers next to numbers with ..... More

Print this item

  Replace a list or string element with a random one..
Posted by: pianistseb - May-09-2019, 08:03 AM - Forum: General Coding Help - Replies (3)

Hello!

I have to do a very simple task, but I have problems with speed. I have a list called 'chromosome', and I want to replace each N into A,G,C ..... More

Print this item

  Key value pairs assistance
Posted by: UtiliseIT - May-09-2019, 07:04 AM - Forum: General Coding Help - Replies (2)

Hi,

I’m trying to extend on the assistance I have received here but with a slightly different scenario. This time I am using a select statement (no..... More

Print this item

  saving (in text or binary) an object under a defined class
Posted by: cai0824 - May-09-2019, 06:58 AM - Forum: General Coding Help - Replies (3)

Hi, I don't know if my topic makes any sense but what I'm trying to say is, I'm made a class
[python]class Users:
def __init__(self, fname, lnam..... More

Print this item

  Can I make a session on os.system
Posted by: Serferi - May-09-2019, 06:36 AM - Forum: General Coding Help - Replies (1)

There is my code, he work with python 2.7 on linux
[python]
print "OUI"
os.system("python ../updater.3.pyc")
o..... More

Print this item

  Deciding how to branch out into coding
Posted by: ameeran143 - May-09-2019, 01:05 AM - Forum: News and Discussions - Replies (1)

Hello Everyone,

I recently took up learning python following a youtube tutorial (CodewithMosh) and I'm about halfway through. I was wondering if it..... More

Print this item

  a function to layout a string
Posted by: Skaperen - May-08-2019, 11:16 PM - Forum: General Coding Help - Replies (5)

before i write this function, i'm curious if such a thing already exists in Python. the function would be given a series of arguments or a list with ..... More

Print this item

  Typical beginner needing some help
Posted by: foxter00 - May-08-2019, 10:44 PM - Forum: General Coding Help - Replies (1)

Hey there. So I'm fairly a beginner when it comes to python and I'm trying to reverse engineer this script to learn something
more advanced but I ca..... More

Print this item

  Using Excel Values As Variables for Equation
Posted by: dezmund - May-08-2019, 10:16 PM - Forum: General Coding Help - Replies (1)

I have a series of received signal strengths in an excel sheet, i would like to use these values as inputs into a pathloss equation to calculate the p..... More

Print this item

  Better Coding request
Posted by: aankrose - May-08-2019, 08:47 PM - Forum: General Coding Help - Replies (5)

start = 5
for i in range(start):
    if i == 0:
        print('##')
    else:
        print('#',i*'o','#',sep='')
[output..... More

Print this item

  Help for newbie with if/else statement that has or statement
Posted by: Shevach - May-08-2019, 08:46 PM - Forum: Homework - Replies (2)

Hello there,
I'm trying make a simple code (to practice for loops and if/elif statements) to give a person 3 choices of what kind of book he is looki..... More

Print this item

  Python 3.6.5 syntax error in IDLE
Posted by: loren41 - May-08-2019, 08:42 PM - Forum: General Coding Help - Replies (7)

Trying to use IDLE in Python 3.6.5 but receiving sytax error at the top line.

[python]Python 3.6.5 (default, Jan 16 2019, 21:12:16)
[GCC 7.3.0] o..... More

Print this item

  Need Help
Posted by: aankrose - May-08-2019, 07:51 PM - Forum: General Coding Help - Replies (4)

[python]
The number of rows must be between 11 and 20 and the The result will appear in the console output as indicated in the figure. If the user e..... More

Print this item

  Error while fetching data from PostgreSQL tuple indices must be integers or slices, n
Posted by: Sandy777 - May-08-2019, 07:37 PM - Forum: General Coding Help - Replies (6)

Hi All,
I have a requirement to port a table from MySQL database server to postgreSQL Database server.

I'm using a Magento website and its backend..... More

Print this item

  Not getting entry values on button click & treeview not updating ?
Posted by: swanysto - May-08-2019, 07:35 PM - Forum: GUI - Replies (4)

So I am very new to programming, I have set a goal of creating a simple file for tracking material prices that I use often. I have been rummaging thro..... More

Print this item

  How to eliminate magic squares formed by the same numbers, but permuted
Posted by: frame - May-08-2019, 06:29 PM - Forum: General Coding Help - Replies (7)

The magic squares that are formed with the first 9 numbers are:
[[6, 1, 8], [7, 5, 3], [2, 9, 4]]
[[2, 7, 6], [9, 5, 1], [4, 3, 8]] etc etc (8 magic..... More

Print this item

  Math Trainer site(s)
Posted by: MvGulik - May-08-2019, 05:54 PM - Forum: Bar - Replies (3)

As general on/off Khan Academy(KA) user, to maintain and where possible to improve my arithmetic and Math skills, I always felt KA was missing some ba..... More

Print this item

  How to switch table area coordinates in Python Camelot and Tabula-Py
Posted by: john5 - May-08-2019, 04:31 PM - Forum: General Coding Help - No Replies

Dear All,

I have obtained the coordinates of a table bounding box using Camelot, but I need to use tabula-py to extract the table data, as camelot is..... More

Print this item

  PING PONG GAME
Posted by: akea - May-08-2019, 04:30 PM - Forum: General Coding Help - No Replies

Hello.i wrote a ping pong game by using turtle with multithreading. The code shows no error in the editor but mutltyhreading isnot working probably an..... More

Print this item

  Help to create a script
Posted by: Codeh - May-08-2019, 03:06 PM - Forum: News and Discussions - Replies (2)

Hi, I'd like to create a script that from a .txt list analyzes all the IP addresses if they are online, and then it must create a file and insert them..... More

Print this item

  Problem Passing Arguement to do loop
Posted by: stephenmolnar - May-08-2019, 02:50 PM - Forum: General Coding Help - Replies (10)

I am running Debian Stretch on my main platform. I have a Computational Chemistry problem in which I have to run a number of python scripts. How do I ..... More

Print this item

  DFS with weighted edges
Posted by: livbat - May-08-2019, 01:41 PM - Forum: Homework - Replies (2)

I'm making a project (the code I'm showing here is related to a part but not the same, more like practice exercise) where I have weighted edges and ne..... More

Print this item

  read json string as dict
Posted by: goron - May-08-2019, 12:32 PM - Forum: General Coding Help - Replies (3)

Hi,

I am trying to decode the string as dict.

[python]
>>> json_string
'{"ip": "13.1.6.0","data": {"tls": {"status": "io-timeout","protocol": ..... More

Print this item

  Batch file not running python script in task scheduler
Posted by: davork - May-08-2019, 12:29 PM - Forum: General Coding Help - Replies (3)

I have a scrapping python script and a batch file that when run from CMD works perfectly however when I try to run it from Task Scheduler nothing happ..... More

Print this item

  Pandas melt only on one variable (leaving other in long format)
Posted by: amyd - May-08-2019, 12:10 PM - Forum: Data Science - No Replies

Hi,

I have the following data:

[python]import pandas as pd
import numpy as np

data = [
['Dog', 5, 0.25,5.5,0.23],
['Cat', 3, 0.1..... More

Print this item

  Fitting xticks on x-axis
Posted by: schniefen - May-08-2019, 12:04 PM - Forum: Homework - Replies (1)

I'm working on a plot of energy consumption versus month over a period of years.

[python]
import matplotlib.pyplot as pat
kwh=[88736,92100,95420..... More


Attached Files

Thumbnail(s)
   
Print this item

  Accessing files in various directories and folders
Posted by: ccuny - May-08-2019, 12:02 PM - Forum: General Coding Help - Replies (2)

Hello all,

First time on this forum and new to Python (which I am studying in my old age specifically for data analysis and machine learning).

I..... More

Print this item

  Software Integration Engineer Infotainment (m/f/x)
Posted by: JobAmbi - May-08-2019, 09:57 AM - Forum: Jobs - No Replies

„The brands BMW, MINI, Rolls-Royce and BMW Motorrad have made BMW Group the world's leading
premium manufacturer of cars and motorcycles as well as p..... More

Print this item

  Software Test Engineer - Test Automation (m/w/x)
Posted by: JobAmbi - May-08-2019, 09:47 AM - Forum: Jobs - No Replies

„The brands BMW, MINI, Rolls-Royce and BMW Motorrad have made BMW Group the world's leading
premium manufacturer of cars and motorcycles as well as pr..... More

Print this item

  split and test tweet data
Posted by: Jmekubo - May-08-2019, 09:01 AM - Forum: General Coding Help - Replies (1)

Hi guys i have a twitter dataset i want to train and test with NB and SVM. After cleaning and vectorizing, i am stuck on the following:
1. splitting ..... More

Print this item

  Error in Database connectivity with python3.7
Posted by: srm - May-08-2019, 08:57 AM - Forum: General Coding Help - Replies (8)

I am using mysql with python 3.7.2 to get connected my database.
on my windows 2008r2 ,I have installed first sql server 2012 and later also mysql.
I..... More

Print this item

  fast lookup for array
Posted by: markB - May-08-2019, 07:55 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a large array (+1M values) where for each value I want to lookup something in a table.
What would be an efficient way to do this?

for..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 2 hours ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... 8 hours 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...
Most views
  The best Prog... 577440
  Tutorial Requ... 500948
  Web Scraping ... 441076
  Newbie with P... 385142
  New Users Int... 369694
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
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday

User Panel Messages

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