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: kyleconor797
» Forum threads: 38,733
» Forum posts: 175,570

Full Statistics

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

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

 
  python txmodem error
Posted by: neethuvp - Jan-03-2020, 04:29 AM - Forum: General Coding Help - Replies (1)

Hi,
I'm trying to update my firmware through python txmodem. I followed the link. ..... More

Print this item

  Error in python code 'import callbot'
Posted by: Lou_Reed - Jan-03-2020, 03:53 AM - Forum: General Coding Help - Replies (3)

I am having trouble making the ode work at this site.

https://www.data-blogger.com/2017/11/01/...in-python/

Every..... More

Print this item

  Syntax error - precedence
Posted by: Rev2k - Jan-03-2020, 02:31 AM - Forum: General Coding Help - Replies (3)

Hi there,
i'm new to coding/python and keep getting a syntax error.

This gives me a syntax error:

[python]

print( 'Forced order:\t' , c, '%..... More

Print this item

  Changing a variable's name on each iteration of a loop
Posted by: rix - Jan-03-2020, 01:06 AM - Forum: General Coding Help - Replies (6)

Is it possible in python to change the name of a variable on each iteration of a loop? For example:
[python]
for i in range(10):
variableNameTo..... More

Print this item

  expressing data in python
Posted by: Skaperen - Jan-03-2020, 01:01 AM - Forum: Bar - Replies (7)

i love how python syntax stays simple through many complicated nestings. that works for code but not for data. lists end with a ] a..... More

Print this item

  print an image using PyQt
Posted by: micro - Jan-03-2020, 12:53 AM - Forum: GUI - Replies (4)

i tried to use QtPrintSupport
it works fine with html content but image doesn't shows up
[python]
from PyQt5 import QtPrintSupport

self.editor ..... More

Print this item

  f-strings in a script to be made public
Posted by: Skaperen - Jan-03-2020, 12:06 AM - Forum: News and Discussions - Replies (2)

just about all my python scripts now use f-strings. many of those use many f-strings. as literals to be parsed during the compile phase, in p..... More

Print this item

  Help on parsing simple text on HTML
Posted by: amaumox - Jan-02-2020, 08:28 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello Everyone,

I've been trying to parse an HTML page in order to get a simple price but I can't succeed, I tried to get help from youtube tutoria..... More

Print this item

  Preserve xml file format
Posted by: tanffn - Jan-02-2020, 08:12 PM - Forum: General Coding Help - Replies (3)

Hi!
I would like to manipulate an xml file yet preserve it's format (extra spaces, comments, cr, ..).
lxml preserve comments out of the box but was ..... More

Print this item

  IndexError: index 8 is out of bounds for axis 0 with size 8
Posted by: Help_me_Please - Jan-02-2020, 04:23 PM - Forum: General Coding Help - Replies (6)

Dear anyone who can help,

I have had a problem for many weeks with my code, it is suppose to play connect 4 against the computer. I have tried many..... More

Print this item

  Convert 400 grayscale pixels into RGB
Posted by: python420 - Jan-02-2020, 02:39 PM - Forum: General Coding Help - Replies (1)

I'm working on a data set from text files and I would like to:

1. Convert the dataset into an array in order to make .jpg images
2. Convert th..... More

Print this item

  Keras Dense layer with wrong input
Posted by: d1r4c - Jan-02-2020, 02:35 PM - Forum: Data Science - No Replies

Hi everyone,

I'm building a simple CNN and can't seem to get it to work. The error I get is:
[output]ValueError: Error when checking target: expec..... More

Print this item

  If Statements and Comparisons returns a syntax error
Posted by: DarkAlchemyXEX - Jan-02-2020, 12:59 PM - Forum: Homework - Replies (2)

I'm self teaching python and need a bit of help . I'm trying to figure out why my code gives me a syntax error. [python]def max_num(num1, num2, num3):..... More

Print this item

  subscribing to kafka topic/key
Posted by: georgelza - Jan-02-2020, 04:53 AM - Forum: General Coding Help - Replies (10)

hi all

has anyone been able to subscribe to a topic, but only want the data for a specific key coming back... without having to specify the partiti..... More

Print this item

  Python would not run after installation
Posted by: Charles37 - Jan-02-2020, 01:53 AM - Forum: General Coding Help - Replies (5)

I have just installed Python 3.8.1 (Windows 10, 64 bit) on my computer. Apparently it installed correctly and it shows in the list of programs, when ..... More

Print this item

  tell me what's wrong with my code?
Posted by: codingisannoyingaf - Jan-02-2020, 12:02 AM - Forum: General Coding Help - Replies (6)

[python]
message1 = "Global Variable"

def myFunction():
print("\nINSIDE THE FUNCTION")
#Global variables are accessible
inside a functi..... More

Print this item

  Print string after decode
Posted by: martinzeifang - Jan-01-2020, 10:04 PM - Forum: General Coding Help - Replies (1)

Hallo,

I have a small programm. In a function I receive date an decode it back to utf-8
the function returns the data:

[python]def reliable_re..... More

Print this item

  the meaning of ,*, in documentation
Posted by: Skaperen - Jan-01-2020, 09:27 PM - Forum: News and Discussions - Replies (1)

i know i asked this long ago, but i never did get an answer. in the specification of many functions and methods it gives a ,*, in th..... More

Print this item

  Odd Unit Test Behavior
Posted by: ichabod801 - Jan-01-2020, 08:59 PM - Forum: General Coding Help - Replies (3)

I have this program:

[python]
"""
_test_all.py

Overall unit testing for the t_games project.
"""

import unittest

if __name__ == '__main__':
test_..... More

Print this item

  How to append one function1 results to function2 results
Posted by: SriRajesh - Jan-01-2020, 04:52 PM - Forum: General Coding Help - Replies (5)

Hi, I have two functions and I want to append the results of function1 and function2.

[python]#import difflib
import os
my_dir = 'D:\Backupdata\Pytho..... More

Print this item

  Permutation + Formula Execution
Posted by: hds4ifc - Jan-01-2020, 04:22 PM - Forum: Data Science - Replies (2)

Q: Sum 50 balls in a box, 8= Blue, 13= Black, remaining= grey, I pick 5 balls randomly, pick another then put 1 back, pick another then put 1 back, ..... More

Print this item

  how to write audio player?
Posted by: constantin01 - Jan-01-2020, 02:49 PM - Forum: General Coding Help - Replies (2)

I would like to write simple audio player (for mp3) with GUI. But I do not know what I should start from. What about GUI, it is clear - I can use tkin..... More

Print this item

  game not working on safari browser on iphone/ipad
Posted by: marcush929 - Jan-01-2020, 02:09 PM - Forum: General Coding Help - Replies (1)

[python]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
canvas {
border:1px ..... More

Print this item

  how to make a program with a certain number of multiples?
Posted by: syafiq14 - Jan-01-2020, 12:48 PM - Forum: General Coding Help - Replies (3)

how to make a program if it met with certain multiples of these numbers will produce a different output
example: I have numbers 1 - 20 these numbers ..... More

Print this item

  split the list
Posted by: SriRajesh - Jan-01-2020, 12:00 PM - Forum: General Coding Help - Replies (2)

Hi,
I have below code to split the list and get the last element as the file name.
but when I access the last element after splitting, its is not g..... More

Print this item

  Apply rolling window function over time dimension of 3D data
Posted by: Staph - Jan-01-2020, 08:31 AM - Forum: Data Science - No Replies

[python]import xarray as xr
import numpy as np
def get_grps(s, thresh=-1, Nmin=2):
"""
Nmin : int > 0
Min number of consecutive v..... More

Print this item

  modify code to accept 3d array
Posted by: Staph - Jan-01-2020, 08:06 AM - Forum: Data Science - No Replies

[python]import xarray as xr
import numpy as np
def get_grps(s, thresh=-1, Nmin=2):
"""
Nmin : int > 0
Min number of consecutive values..... More

Print this item

  python newbie
Posted by: marcush929 - Jan-01-2020, 07:33 AM - Forum: General Coding Help - Replies (2)

[python]
correct_number = "69"
hint_a_min = "0"
hint_a_max = "50"
hint_b_min = "70"
hint_b_max = "99"
guess = input("Guess a number between 1 an..... More

Print this item

  python beginner
Posted by: ABDUL - Jan-01-2020, 02:34 AM - Forum: General Coding Help - Replies (3)

can any tell me what i am doing wrong please

[python]num = 0
tot = 0.0
while true:
sval = input('Enter a number:')
if sval == 'done!':
..... More

Print this item

  How To Unload Windows Native Extension ( .pyd )?
Posted by: zicklag - Jan-01-2020, 02:12 AM - Forum: General Coding Help - Replies (3)

I am looking for a way to get the Python interpreter to release a native Python extension file ( .pyd ) so that I can delete the file when running o..... More

Print this item

  concatenating lists in a comprehension
Posted by: Skaperen - Jan-01-2020, 01:17 AM - Forum: General Coding Help - Replies (3)

i have an iterator that yields a list each time it is iterated. i want to get all of its lists concatenated together as one big long list. easy enou..... More

Print this item

  Looking for a well-designed web-app with Flask
Posted by: ziliboba - Dec-31-2019, 11:54 PM - Forum: Web Scraping & Web Development - Replies (1)

I am looking for a well-designed web-app with Flask which I could consider as an example of good design (I mean code and app design, not UI). It would..... More

Print this item

  Filtering Excel Document Data Based On Numerical Values
Posted by: eddywinch82 - Dec-31-2019, 10:49 PM - Forum: General Coding Help - Replies (30)

Hi there,

I have a code Filtering Data, that I wan't displayed from an Excel Document using Pandas
in Jupyter Notebook. It is for a UK RAF Historic A..... More

Print this item

  Python DateTime is broken
Posted by: 10OctNotOct10a1 - Dec-31-2019, 06:13 PM - Forum: General Coding Help - Replies (8)

Please help me fix this, when I tried this

import datetime
print(datetime.datetime(2019, 10, 10).strftime('%d/%m/%Y'));
It outputs th..... More

Print this item

  Array problem in pylab module - Image processing
Posted by: bobfat - Dec-31-2019, 06:02 PM - Forum: General Coding Help - No Replies

Hello Python community,
I am trying to load an image into a pylab array. All packages are installed as it should be but I keep receiving the following..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 6 hours ago 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577451
  Tutorial Requ... 501096
  Web Scraping ... 441079
  Newbie with P... 385153
  New Users Int... 369765
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
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday
silversimon2 09-30

User Panel Messages

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