Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,286
» Latest member: xdimbah
» Forum threads: 38,792
» Forum posts: 175,875

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Google, Facebook, Apple, lovedeep

Latest Threads
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 12:05 PM
» Replies: 5
» Views: 119
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 50
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,483
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 143
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 63
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,071
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,300
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 368
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 207
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 267

 
  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

  Saves the data in the wrong format
Posted by: Hennie - Dec-31-2019, 04:48 PM - Forum: General Coding Help - Replies (1)

I am having an issue with my data being entered gets saved wrong into my excel file.
i believe the issue relates to my insert function

[python] ..... More

Print this item

  Space Invaders
Posted by: MelihsahCelik - Dec-31-2019, 03:51 PM - Forum: Homework - Replies (5)

Hello, I'm new in the forum and my native language isn't English so I'm sorry if I do some mistakes. I need to do a homework (Space Invaders) and I do..... More

Print this item

  Read serial BR=9600 . print me 2 lines?
Posted by: korenron - Dec-31-2019, 02:51 PM - Forum: General Coding Help - Replies (1)

Hello ,
I have a script that read data from serial sensor
the data is sent in BR 9600
i'm waiting 500ms from each reading - so I'm getting 2 read..... More

Print this item

  installing pygame error
Posted by: pylab - Dec-31-2019, 02:24 PM - Forum: Game Development - Replies (1)

Hello there,


i'm new to the community and i'm having some issues with Pygame. Even thouth i installed it with "pip install" and i can see it with "p..... More

Print this item

  using paramater markers
Posted by: masmithrpg - Dec-31-2019, 01:57 PM - Forum: General Coding Help - No Replies

I'm just beginning learning Python. I am connecting to DB2
I'm currently using version 3.6.9

I am trying to build excel spreadsheets with paramet..... More

Print this item

  Where is a file
Posted by: tharpa - Dec-31-2019, 01:48 PM - Forum: General Coding Help - Replies (4)

Part of an error message I am receiving says [error]File "src/lxml/xmlschema.pxi", line 86, in lxml.etree.XMLSchema.__init__
lxml.etree.XMLSchemaPars..... More

Print this item

  Responsive theme
Posted by: kamaleon - Dec-31-2019, 09:53 AM - Forum: Board - Replies (5)

Hello,

Just a suggestion, don't you think this forum should be updated with a responsive theme?

I can't barely ready anything with my mobile fro..... More

Print this item

  How to use Scipy.special to retrieve complex Poles / Zeros of Bessel Polynominal
Posted by: Detzi - Dec-31-2019, 09:52 AM - Forum: Data Science - Replies (2)

Good Day,
i am trying to calculate the Poles of a Bessel Polynomial as it is used in electronics. [1[url=https://python-forum.io/thread-23459.html]..... More

Print this item

  Finding a Hamiltonian Path Efficiently - ADVANCED
Posted by: stauffski - Dec-31-2019, 09:49 AM - Forum: General Coding Help - Replies (3)

Hello Fellow Code Ninjas,

Working on a humdinger here. I'm getting stuck trying to come up with a solution to finding a ..... More

Print this item

  Access list items in Python
Posted by: kamaleon - Dec-31-2019, 09:42 AM - Forum: General Coding Help - Replies (2)

Hello,

How can I access the values of A1, A2 and A3?

Is this a dictionary inside of a list?

[python]>>> type(data)
<class 'list'>
>>> pprin..... More

Print this item

  Pyqt5: How do you make a button that adds new row with data to a Qtablewidget
Posted by: YoshikageKira - Dec-31-2019, 08:52 AM - Forum: GUI - Replies (6)

My goal is to create a view only table that allows you to add data to table that is then displayed.

Im having trouble with making a script that wi..... More

Print this item

  Arranging SQL Extract
Posted by: Ranjirock - Dec-31-2019, 07:34 AM - Forum: General Coding Help - Replies (4)

Hello Everyone,

I'm trying to extract the data content from SQL DB to Python and process and send an email (everything to be automated). However, i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... Yesterday, 12:05 drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579259
  Tutorial Requ... 512109
  Web Scraping ... 442186
  Newbie with P... 386295
  New Users Int... 379626
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12109
buran 8196
snippsat 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
xdimbah Today
IsmaelSlalk Today
Stephenchers Today
alexferrina Yesterday
MattCarters 11-22

User Panel Messages

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