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: Santoro
» Forum threads: 38,791
» Forum posts: 175,868

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 40 Guest(s)
Bing, Applebot, Google, Facebook Dev, Mojeek

Latest Threads
How Can Solo Indie Game D...
Forum: Game Development
Last Post: OtiliaBecker
4 hours ago
» Replies: 0
» Views: 18
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 90
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 31
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:59 AM
» Replies: 11
» Views: 5,984
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,282
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 296
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 144
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 208
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,114
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 255

 
  matplotlib.pyplot functions create new figures instead of applying to the current one
Posted by: karkas - Jul-09-2020, 08:05 AM - Forum: Data Science - Replies (2)

I'm starting to learn matplotlib, following the pyplot tutorial, but something we..... More

Print this item

  Print output in single file using pramika loop
Posted by: deepakkhw - Jul-09-2020, 06:50 AM - Forum: General Coding Help - Replies (1)

Hi,
I am using the below script for my automation but currently, it is making different putout file each device but I want to make a only single file..... More

Print this item

  Struggling with nested list
Posted by: gr3yali3n - Jul-09-2020, 05:44 AM - Forum: General Coding Help - Replies (3)

Now I’ve gotten a slight grasp on dictionaries ,the join() and split I am working on understanding nested list and how to process them at least I thin..... More

Print this item

  Why int() cannot pass a string representation of a float into int?
Posted by: majorjohnusa - Jul-09-2020, 04:44 AM - Forum: General Coding Help - Replies (1)

Dear all,
I have a rookie question.

In the following codes, we know that the second one will result in a ValueError, because the "int()" command can..... More

Print this item

  right now a goto would be useable
Posted by: Skaperen - Jul-09-2020, 04:24 AM - Forum: News and Discussions - Replies (9)

i'm deep in a bunch of if clauses and a couple of for loops and my test detect a condition where i need to set up the dictionary to be returned then r..... More

Print this item

  Searching for a word
Posted by: Kristenl2784 - Jul-09-2020, 01:06 AM - Forum: General Coding Help - No Replies

Hello,

This script as it sits has no errors, and works, but I want to change it up slightly. Right now it takes the files in my input directory, an..... More

Print this item

  ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package
Posted by: AaronKR - Jul-08-2020, 11:25 PM - Forum: General Coding Help - Replies (1)

Quick disclaimer: I'm still very much a beginner to python

I get the error in the title when I run

[python]from scipy.optimize import brentq[/py..... More

Print this item

  What is distinction between 'sent3' and 'set(sent3)'?
Posted by: AOCL1234 - Jul-08-2020, 09:51 PM - Forum: Homework - Replies (5)

What is the distinction between 'sent3' and 'set(sent3)', 'sent2' and 'set(sent2)', etc.? 'sent3' generates the tokens entailed in sentence 3, which m..... More

Print this item

  redirect url_for passing arguments with the url
Posted by: Leon79 - Jul-08-2020, 08:05 PM - Forum: General Coding Help - Replies (1)

Hello Coders!

I have a problem with a redirect, I'm a very beginner, and I would like to accomplish to this!

I show you the code:

[python]
..... More

Print this item

  CSV to Json
Posted by: starfish - Jul-08-2020, 07:25 PM - Forum: General Coding Help - Replies (6)

As a python beginner, I like to take a CSV file and load and then output json

I have tried a few things - pandas, csvmapper but I'm struggling to ..... More

Print this item

  ModuleNotFoundError: No module named 'plotly.validators.scatter3d.line'
Posted by: jeffbrownell - Jul-08-2020, 07:21 PM - Forum: General Coding Help - Replies (3)

I’m running into a ModuleNotFound error with plotly when running the below die_visual.py script. It imports plotly libraries and another small random ..... More

Print this item

  Word blitz Hack python
Posted by: Joeri75 - Jul-08-2020, 07:14 PM - Forum: General Coding Help - Replies (1)

Hi there all ,

can homebody help me what i am do'ing wrong with python 3.8.4

i want to try this code : https://github.com/taixhi/wordblitz/blob..... More

Print this item

  How to fill between the same area with two different colors
Posted by: Staph - Jul-08-2020, 07:01 PM - Forum: General Coding Help - No Replies

import matplotlib.pyplot as plt
x1 = [1,2,3,4,5,]
y1 = [2,3,4,5,6]
y2 = [6,7,8,9,10]

x2 = [6,7,8,9,10]
y11 = [2,3,4,5,6]
y22 = [10,11,12,12,5]..... More

Print this item

  pygame in Backgroundthread works in Linux, crashes in Win10
Posted by: blbltheworm - Jul-08-2020, 06:49 PM - Forum: Game Development - Replies (3)

Dear all,

I am working on a project where pygame is running in a background tread to provide a GUI and the main program is interacting indirectly w..... More

Print this item

  New to coding. need som help with an assignement.
Posted by: gambit - Jul-08-2020, 06:16 PM - Forum: Homework - Replies (4)


[python]def volume_per_container(kg_cargo_per_cubic_metre):
"""Given the kg of cargo..... More

Print this item

  ctypes and custom data type (structures, pointer to structures)
Posted by: python_user_n - Jul-08-2020, 05:52 PM - Forum: General Coding Help - No Replies

Hi everyone,
Recently I've tried to understand how to use ctypes in Python3 (3.8) by loading shared library (.dll, Microsoft Windows OS) from ..... More

Print this item

  Creation of Buttons with Shared Command Inside Class
Posted by: MulliganAgain - Jul-08-2020, 05:52 PM - Forum: GUI - Replies (1)

I am trying to refactor some code into classes and methods that I have for a LED matrix GUI. When I create the matrix of buttons I created a lambda to..... More

Print this item

  How to do an ean query?
Posted by: leon1912 - Jul-08-2020, 04:31 PM - Forum: General Coding Help - Replies (2)

Hello,
I want to program an ean query with an ean api.
The ean request looks like this: ..... More

Print this item

  Question in python function problem
Posted by: saratha - Jul-08-2020, 04:14 PM - Forum: General Coding Help - Replies (1)

HELLO EVERYONE, python
Can I ask you a question? What is the answer for this question and can anyone explain it in depth?


			

Print this item

  Saving Report Names
Posted by: Kristenl2784 - Jul-08-2020, 03:49 PM - Forum: General Coding Help - Replies (7)

Hello,

I'm trying to get the below code to save my files a certain way, and I can't seem to get it to work. What I want to happen is once the data..... More

Print this item

  error SimpleITK module with pyinstaller
Posted by: PythonCode12 - Jul-08-2020, 12:07 PM - Forum: General Coding Help - No Replies

I want to generate an executable and therefore include the SimpleITK module with pyinstaller. My code works fine in the python editor. If i make an ex..... More

Print this item

  plotting from 3 differential equations
Posted by: grknkilicaslan - Jul-08-2020, 11:47 AM - Forum: General Coding Help - Replies (1)

Hi,
I do not know how to get x-z plot from the equations below. I tried many ways but I could not achieve it. This is very important for my research...... More

Print this item

  building and printing a receipt with receipt printer
Posted by: marly - Jul-08-2020, 10:38 AM - Forum: News and Discussions - Replies (2)

Hello! I have recently started a project (application for a restaurant) using wxpython library, but I don't know
how to print or what library a can u..... More

Print this item

  Whats the difference between these two?
Posted by: Puxk - Jul-08-2020, 10:34 AM - Forum: Homework - Replies (4)

here's my question:-
You are driving a little too fast, and a police officer stops you. Write a function to return one of 3 possible results: "No tic..... More

Print this item

  Find, delete and add text into pdf file
Posted by: a_shvechkov - Jul-08-2020, 10:30 AM - Forum: General Coding Help - Replies (2)

Dear forum users!

There is a pdf file, it is necessary to delete certain text in it. Then add new text below to the existing one.
I'm trying to us..... More

Print this item

  Why is the item not in list when it is
Posted by: DanielCook - Jul-08-2020, 10:06 AM - Forum: General Coding Help - Replies (2)

[python]#blackjack

import random
deck = ["2+diamonds","3+diamonds","4+diamonds","5+diamonds","6+diamonds","7+diamonds","8+diamonds","9+diamonds","..... More

Print this item

  Monitor specific line of code and get alert
Posted by: Olimpiarob - Jul-08-2020, 10:05 AM - Forum: Web Scraping & Web Development - No Replies

Hi all,

After reading 'Python Crash Course' I want to do something in the real world.

Im looking for some guidelines/tips when I want to monitor a s..... More

Print this item

  pandas.Series
Posted by: IoannisDem - Jul-08-2020, 08:53 AM - Forum: Data Science - Replies (2)

I have just started using pandas and I have a question related to a coding bit.
[python]s = pd.Series(['a1', 'b2', 'c3'])
s.str.extract(r'([ab])(\d)..... More

Print this item

  python3: iterating through list not working
Posted by: wardancer84 - Jul-08-2020, 08:51 AM - Forum: General Coding Help - Replies (3)

hi,

usually a brainfart, but i need your sharp eyes as i'm stuck.

this function should iterate over a list, but only prints the first item than ..... More

Print this item

  Problem with comparing list
Posted by: palladium - Jul-08-2020, 07:38 AM - Forum: General Coding Help - Replies (2)

I want to compare the elements of two list and the code to return True if all of the elements in the second list is present in the first. The code is:..... More

Print this item

  Syntax to print ndarray member of class containing ndarray
Posted by: pjfarley3 - Jul-08-2020, 05:21 AM - Forum: General Coding Help - Replies (6)

If I define a class Q containing a member which is an ndarray of strings, I can print that class member by name.

If I define another class G contai..... More

Print this item

  Python/winrt support for python 3.8 version
Posted by: pbvinoth - Jul-08-2020, 04:32 AM - Forum: News and Discussions - Replies (2)

We have module called python/winrt which will be helpful to access the windows runtime apis.

While trying to install the module facing below error...... More

Print this item

  python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Imp
Posted by: pbvinoth - Jul-08-2020, 04:27 AM - Forum: General Coding Help - No Replies

We used python/winrt module to interact with windows runtime apis in python scripts.

There is name space called Windows.Devices.Bluetooth.GenericAt..... More

Print this item

  How do you work with procedurally generated data?
Posted by: rbbauer00 - Jul-08-2020, 02:26 AM - Forum: General Coding Help - Replies (1)

I want to write a script that generates a list of (X,Y) coordinates to be passed into CAD software in order to automate some extremely repetitive geom..... More

Print this item

  Selenium
Posted by: ABVSVL - Jul-07-2020, 10:09 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello to all. trying to log in.
But I can’t.

If it was a regular site. I was able to do this.
And here I do not know what to do
I thought by xpa..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Can Solo Indie Game D... 4 hours ago OtiliaBecker OtiliaBecker Game Developm...
  [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... 579184
  Tutorial Requ... 511891
  Web Scraping ... 442139
  Newbie with P... 386218
  New Users Int... 379114
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
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Santoro 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