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,279
» Latest member: ndx101
» Forum threads: 38,790
» Forum posts: 175,868

Full Statistics

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

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
11 hours ago
» Replies: 4
» Views: 1,455
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 104
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 39
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:59 AM
» Replies: 11
» Views: 6,014
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,286
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 312
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 156
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 220
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,118
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 263

 
  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

  pycharm
Posted by: IkrKobe - Jun-04-2020, 12:32 AM - Forum: General Coding Help - Replies (2)

hello
im new to programming and trying to learn it myself. I have this code for a instagram bot and its all done. The last step that i have to do is..... More

Print this item

  Installing Error - Python 2.7.8
Posted by: saranana - Jun-03-2020, 11:44 PM - Forum: General Coding Help - Replies (2)

Hi hi!

I'm trying to teach myself python using a somewhat outdated book. Im just going through it to get a handle on some of the basics but this bo..... More

Print this item

  invalid keyword arguments error
Posted by: sagpal - Jun-03-2020, 08:58 PM - Forum: General Coding Help - Replies (3)

Hi,
can anyone help me with this.


[python]
import optparse
import socket
from socket import *


def connScan(tgtHost, tgtPort):
try..... More

Print this item

  print output on Jenkins
Posted by: Pench - Jun-03-2020, 08:06 PM - Forum: General Coding Help - Replies (1)

I'm new to python, please help on this requirement.
I wrote a simple python script to execute on Jenkins pipeline.
calling bat script on Jenkins
b..... More

Print this item

  Syllable Count Function
Posted by: pav1983 - Jun-03-2020, 08:05 PM - Forum: Homework - Replies (3)

Create a function that counts the number of syllables a word has. Each syllable is separated with a dash -.

Examples
number_syllables("buf-fet") ➞..... More

Print this item

  copying an Excelsheet with its conent and renaming into different names
Posted by: deheugden - Jun-03-2020, 07:14 PM - Forum: General Coding Help - Replies (6)

Hello,

I have been playing with Python for several months now, but progress is going very slow. I am still doing small scripts, am stuck at the fun..... More

Print this item

  Create a GUI for alrady written code.
Posted by: francois072 - Jun-03-2020, 06:11 PM - Forum: GUI - Replies (5)

I'm a new Python user and I'm still learning so I decided to write a simple quiz program in Pycharm.
Only problem is I can't find a tutorial anywhere..... More

Print this item

  Multiproccessing ValueError: Pool not running when running parallel functions
Posted by: Gilush - Jun-03-2020, 06:02 PM - Forum: General Coding Help - Replies (1)

[Image: gUGml.jpg]

I get this error when clicking the submit button the 2nd time.
My main target is to print the outpu..... More

Print this item

  module to store functions/variables and how to call them?
Posted by: mstichler - Jun-03-2020, 05:57 PM - Forum: General Coding Help - Replies (3)

Can I create a module to store all my functions?
for instance could i have a module that contains every function I need for my program, and if so how..... More

Print this item

  Python Assignment 3 - Applied Data Science - 2.3
Posted by: eyavuz21 - Jun-03-2020, 05:42 PM - Forum: Homework - Replies (8)

Hey all,

I have the following code below:

[python]
import pandas as pd
import numpy as np
from scipy import stats
import matplotlib.pyplot ..... More

Print this item

  Test a file for a string without opening it?
Posted by: tester_V - Jun-03-2020, 05:11 PM - Forum: General Coding Help - Replies (2)

Hi,
I have a lot of files in a directory,
Is there any good way to test a file for a string without opening it?
[python]
String =’Run Time’
If s..... More

Print this item

  zipfile
Posted by: sagpal - Jun-03-2020, 05:06 PM - Forum: General Coding Help - Replies (2)

i am getting error "expected bytes, got str"

here is the python code:
----------------------
[python]import zipfile
zFile = zipfile.ZipFile("evi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 11 hours ago GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... Yesterday, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Yesterday, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Yesterday, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Yesterday, 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...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
Most views
  The best Prog... 579199
  Tutorial Requ... 511951
  Web Scraping ... 442147
  Newbie with P... 386226
  New Users Int... 379184
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 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ndx101 Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday
eastnoob 11-19

User Panel Messages

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