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,967
» Latest member: Jacobjoift
» Forum threads: 38,730
» Forum posts: 175,549

Full Statistics

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

Latest Threads
Webscrapping sport bettin...
Forum: Web Scraping & Web Development
Last Post: Jacobjoift
30 minutes ago
» Replies: 5
» Views: 13,724
looking for help
Forum: Bar
Last Post: PhamMaria
35 minutes ago
» Replies: 1
» Views: 1,858
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 4
» Views: 230
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:58 PM
» Replies: 1
» Views: 593
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,125
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,689
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 586
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,074
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,063
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,337

 
  How do I do this? Switch Case?
Posted by: mstichler - Jun-04-2020, 09:29 PM - Forum: General Coding Help - Replies (4)

Hello,

Im attempting to generate a random number as such:

import random
rnumber = random.randint(1, 10)
then I want to take..... More

Print this item

  Extract data with Selenium and BeautifulSoup
Posted by: nestor - Jun-04-2020, 08:31 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi, I'm trying to extract live betting data from this sports betting site, https://bwin.com this is the code I use
[python]from selenium import webdr..... More

Print this item

  Skipping sound file on RPi4
Posted by: jmcebula - Jun-04-2020, 07:38 PM - Forum: Data Science - No Replies

Hi everyone!

I'm having an issue with some code on a RPi4.

The program does the thing it should 75% of the time.

After a few loops through t..... More

Print this item

  Writing to File Issue
Posted by: Flash_Stang - Jun-04-2020, 06:51 PM - Forum: General Coding Help - Replies (3)

Hello,

I've got this python program written that uses a 16x1 multiplexer with 16 sensors and takes the readings from each channel. This part of the..... More

Print this item

  Removing internal brackets from a string
Posted by: Astrikor - Jun-04-2020, 06:04 PM - Forum: General Coding Help - Replies (4)

Can anyone advise me coding to remove the internal brackets from this string please:

D = (((2517.0, 2525.0), 2437.0), 2440.0)

The result I am lo..... More

Print this item

  The correct POST request
Posted by: abhie_lp - Jun-04-2020, 05:11 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi everyone. I have been trying to scrape a website to get the data of the next day. ..... More

Print this item

  2nd Project: Rock, Paper, Scissors
Posted by: MiNigle - Jun-04-2020, 05:08 PM - Forum: Code Review - Replies (3)

Hello Smile

My second project is rock, paper, scissors which works with a "best of 3 rounds" mechanic.

Again, if anyone has a little time t..... More

Print this item

  [split] New to the forum, how to post a question?
Posted by: ArshadNm - Jun-04-2020, 05:04 PM - Forum: Board - Replies (5)

I am new in this forum I want to post my problems which I am facing. How to do it? I am unable to find any icon to post on this forum.

Print this item

  I need help with Python code
Posted by: amber1411 - Jun-04-2020, 04:53 PM - Forum: General Coding Help - Replies (1)

I have below array with 7R & 4C

Objective is to draw a pictorial graph capturing "how many Freq used/Free Freq in HOP A-B, B-C, C-D & A-D"
..... More

Print this item

  nmap
Posted by: sagpal - Jun-04-2020, 04:32 PM - Forum: Networking - Replies (2)

hi, can someone help me with this error.

[python]import nmap
import optparse


def nampScan(tgtHost, tgtPort):
nmScan = nmap.PortScanner(..... More

Print this item

  Search in an unsorted list
Posted by: amir_0402 - Jun-04-2020, 03:53 PM - Forum: General Coding Help - Replies (2)

Hi guys,

I'm trying to create a function that searches a key in an unsorted list with a divide-and-conquer algorithm.

Right now it only ..... More

Print this item

  LED exercise
Posted by: Sand319 - Jun-04-2020, 03:15 PM - Forum: General Coding Help - Replies (4)

I only started programming on my Rpi this past week, I've never programmed before, and I'm making the most of my lockdown time by keeping my brain eng..... More

Print this item

  Generate Cartesian Products with Itertools Incrementally
Posted by: CoderMan - Jun-04-2020, 03:12 PM - Forum: General Coding Help - Replies (2)

Hello,

I know I can get Cartesian products using

itertools.product(a,b)
Assuming that
a = ['a','b']
and [python]b ..... More

Print this item

  program help
Posted by: surya_dot - Jun-04-2020, 02:55 PM - Forum: Homework - Replies (3)

Find out duplicate number between 1 to N numbers. (anyone have a code)

Print this item

  The tkinter version of Rock Paper Scissors
Posted by: menator01 - Jun-04-2020, 01:41 PM - Forum: Code sharing - Replies (3)

As always, I welcome feedback.

[python]
#! /usr/bin/env python3

# Do the imports
import os
import tkinter as tk
from tkinter import messageb..... More

Print this item

  how to break the loop?
Posted by: bntayfur - Jun-04-2020, 01:02 PM - Forum: General Coding Help - Replies (8)

I want to check all the input i receive, i know i can put float or int at the beginning of the input but i want it to print an error message when erro..... More

Print this item

  "Slicing and dicing strings" - - PyBite #105
Posted by: Drone4four - Jun-04-2020, 12:58 PM - Forum: Homework - Replies (8)

I’m learning how to ‘slice and dice’ strings. Here is the code challenge:

[quote]
https://codechalleng.es/bites/105/

Take the block of text pro..... More

Print this item

  Class variables
Posted by: menator01 - Jun-04-2020, 12:53 PM - Forum: General Coding Help - Replies (2)

Given the scenario
[python]
class SomeClass:
myvar = 0
def __init__(self):
do stuff here
def func(self):
do stuff ..... More

Print this item

  Website Help!
Posted by: MianDoesCoding - Jun-04-2020, 12:24 PM - Forum: Web Scraping & Web Development - Replies (2)

Hey!
So i'v made a simple website with html and css, but i was wondering, how could i make it acctually do stuff.
For example
How could i make it ..... More

Print this item

  Event listeners
Posted by: AnWa - Jun-04-2020, 12:07 PM - Forum: General Coding Help - Replies (1)

Hi! First time poster here.

I have a project that requires a lot of pseudo-parallel I/O (cycling quickly enough that a human user doesn't notice it..... More

Print this item

  Error in Python Code
Posted by: ErnestTBass - Jun-04-2020, 12:00 PM - Forum: General Coding Help - Replies (4)

The following python code gives an error.

[code]
%reload_ext nb_black

import yfinance
import pandas as pd
import numpy
import matplotlib.pyp..... More

Print this item

  Python Hangman Game - Multiple Letters Problem
Posted by: t0rn - Jun-04-2020, 11:57 AM - Forum: General Coding Help - Replies (4)

Python 3.6.5

I've created a hangman game in Python and I'm trying to debug an error:

The game works in a way that randomly picks a word from a ..... More

Print this item

  Connect to device without paramiko/netmiko modules
Posted by: kang18 - Jun-04-2020, 11:44 AM - Forum: Networking - Replies (3)

Hi All,

I am new to networking python programming. I am currently working with a Telcom company.

We are working with multiple customers on a dif..... More

Print this item

  Reading csv with multiple "headers"
Posted by: Clives - Jun-04-2020, 11:14 AM - Forum: General Coding Help - Replies (3)

Greetings,

I have a csv file with an odd format. It consists of a number of 10 blocks.
The first line of the block has a "header" 'Grid-ref=X(int)..... More

Print this item

  Learning Python - good free online resources & courses
Posted by: StickyBrickit - Jun-04-2020, 10:48 AM - Forum: News and Discussions - Replies (1)

Hi all,

A question that has no doubt been asked a million times: I'm trying to learn Python out of a book but I'm finding that it's not the best wa..... More

Print this item

  construction of Neural Network for solving Differential equations
Posted by: arshad - Jun-04-2020, 09:20 AM - Forum: Data Science - No Replies

hello there,

i m trying to construct a code for a neural network to solve differential equations
here is the code, can one plz take a look of the..... More

Print this item

  expecting value: line 1 column 1 (char 0) in print (r.json))
Posted by: loutsi - Jun-04-2020, 08:18 AM - Forum: Web Scraping & Web Development - Replies (3)

hi i experience a problem. So i deploy a model in flask


[python]from flask import Flask, request, jsonify#--jsonify will return the data
from ke..... More

Print this item

  Pipelines for different processing steps
Posted by: dervast - Jun-04-2020, 08:07 AM - Forum: Data Science - Replies (3)

Hi all,
I am having a dataset that I want to try

-different filtering techniques
-different transformations
-different machine learning techniqu..... More

Print this item

  pyautogui.screenshot region is not working
Posted by: alexlu - Jun-04-2020, 08:02 AM - Forum: General Coding Help - Replies (6)

When I try to capture a video screenshot of my screen in a region suddenly the .avi output file becomes a 7kb. The is no error, so I do not know how t..... More

Print this item

  Generate RPM package from a Python + Kivy application for an "offline" installation
Posted by: pruvosim - Jun-04-2020, 07:53 AM - Forum: General Coding Help - Replies (2)

Hello everyone !

I'll try to explain the subject the best I can, I'm not an expert Confused

Basically I'm a .Net developper and pretty confide..... More

Print this item

  Record audio from the browser
Posted by: uppie83 - Jun-04-2020, 06:23 AM - Forum: Web Scraping & Web Development - Replies (1)

For test automation of our project I need to check if a player works correctly (regardless the media it plays). Therefore I started learning Python in..... More

Print this item

  Error handling using cmd module
Posted by: leifeng - Jun-04-2020, 05:46 AM - Forum: General Coding Help - Replies (3)

I'm using Python's cmd module to write my own command line interpreter. I'm not sure how to handle errors using the modules.

Let's say my command `..... More

Print this item

  [mysql.connector] The database is never connected to and there are no errors
Posted by: SheeppOSU - Jun-04-2020, 05:36 AM - Forum: Networking - Replies (7)

I made a class to manage a database, but there's a problem with connecting to the database. Line 11 just runs without any errors. If there was an erro..... More

Print this item

  help me make this code better please (basic)
Posted by: bntayfur - Jun-04-2020, 02:55 AM - Forum: Code Review - Replies (4)

It works fine if i give the right numbers LOL
All the input must be between 0 and 100, it doesn't check that.

How do i make the code simpler..... More

Print this item

  taking input doesnt print as list
Posted by: bntayfur - Jun-04-2020, 12:46 AM - Forum: General Coding Help - Replies (2)

I am trying to get 10 scores from the user and print them out as a list. instead output is like this

[output]
please enter your discussions scores..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Webscrapping sport bettin... 30 minutes ago KoinKoin Jacobjoift Web Scraping ...
  looking for help 35 minutes ago Azdaghost PhamMaria Bar
  Comparing 2 100GB Drives/... 7 hours ago tester_V noisefloor General Codin...
  My goal to be hired worki... Yesterday, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... Yesterday, 18:49 arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [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...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577255
  Tutorial Requ... 500303
  Web Scraping ... 440939
  Newbie with P... 384955
  New Users Int... 369274
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+ 12089
buran 8176
snippsat 7368
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Jacobjoift Today
PhamMaria Today
zalexstolzeoz5360 Today
Edzed4431 Yesterday
chaoh1911 Yesterday

User Panel Messages

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