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

Full Statistics

Online Users
There are currently 45 online users.
» 1 Member(s) | 42 Guest(s)
Bing, Google, Santoro

Latest Threads
How to put my game loop i...
Forum: Game Development
Last Post: Santoro
Less than 1 minute ago
» Replies: 12
» Views: 5,992
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
53 minutes ago
» Replies: 4
» Views: 1,440
[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
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: 257

 
  why in Python some time "n += 1" not like "n = n + 1" ?
Posted by: M83Linux - Jul-06-2020, 10:28 AM - Forum: General Coding Help - Replies (4)

Hi All,

In the below example, why the result is different?
what the different between "n += [4, 5]" AND "n = n + [4, 5]"?

[python]
list1 = [1,..... More

Print this item

  SIGWINCH ignored when trying to start a screen with the pexpect module
Posted by: StatTark - Jul-06-2020, 10:12 AM - Forum: General Coding Help - No Replies

I made an application with Python's flask module. I used the pexpect module in some functions but I get the SIGWINCH ignored error. The function does ..... More

Print this item

  read and extract entries in python
Posted by: RRR - Jul-06-2020, 09:43 AM - Forum: General Coding Help - Replies (3)

Hi,

I have a file with below sample entries.

2282:depth=3 hl=4 l=12096 cons: start_indi
2286:depth=4 hl=4 l=5321 cons: next ..... More

Print this item

  Validating user input
Posted by: WJSwan - Jul-06-2020, 07:03 AM - Forum: General Coding Help - Replies (2)

I am new to Python and do not know how to do the following:

I have an input statement asking the user to enter 4 values. I then validate these valu..... More

Print this item

  Help finishing my Wikipedia page
Posted by: card51shor - Jul-06-2020, 05:31 AM - Forum: Homework - Replies (8)

My issue right now is getting the view to complete both the rendering of the function that edits the entry but then also redirect the user back to the..... More

Print this item

  python loop in subprocess
Posted by: vinothkumargomu - Jul-06-2020, 05:15 AM - Forum: General Coding Help - Replies (6)

Hi All,

I was trying to use a config ini file in one of the script. Below is my config file looks like

[DEV]
APPNAME = APP1 APP2

I was tryin..... More

Print this item

  pygame in MacOS Catalina
Posted by: ScottB - Jul-06-2020, 04:50 AM - Forum: Game Development - Replies (2)

Hi, not sure of this is in the right place, so bear with me.

I have installed Python 3.8.3 on my Macbook Air running MacOS Catalina and installed p..... More

Print this item

  Need help (mastermind game)
Posted by: sseansssean - Jul-06-2020, 04:02 AM - Forum: Homework - Replies (2)

Here is a part of my code for one of my assignment in programming.
When I try the program I run into a certain problem, when the answer contains (for..... More

Print this item

  Am trying to use speech_recognition module but getting error
Posted by: NagaphaniKonaknchi - Jul-05-2020, 09:56 PM - Forum: General Coding Help - No Replies

Hi Guys,
Am using Ubuntu 20.04 OS, Phython 3.8
While am running below basic program am getting error. Could you please some one guide me to fix this..... More

Print this item

  The making of marketing clichés
Posted by: Larz60+ - Jul-05-2020, 09:36 PM - Forum: Bar - No Replies

Someone asked what was needed to create a full-stack application, here's what I think (this is a story):

A marketing whiz accepts a job with ABC So..... More

Print this item

  Check all input, easy way! Help pls!
Posted by: bntayfur - Jul-05-2020, 09:00 PM - Forum: General Coding Help - Replies (2)

[python]

while True:
try:
midterm_1= float(input('Please enter your first midterm: '))
midterm_2= float(input('Please enter ..... More

Print this item

  How to fix it?
Posted by: Prezes - Jul-05-2020, 08:57 PM - Forum: General Coding Help - Replies (1)

[python]import os
import random
import time
import datetime
from subprocess import call

var_0 = 'w'
var_1 = 's'
var_2 = 'a'
var_3 = 'd'

..... More

Print this item

  outcome 0 but impossiblenumbers change
Posted by: bntayfur - Jul-05-2020, 08:52 PM - Forum: General Coding Help - Replies (1)

[python]

i= 1
top_hat= []
while i<=5:
try:
top_hat.append(int(input('Please enter your top hat score: ')))
i+=1

..... More

Print this item

  Outputting Sorted Text files Help
Posted by: charlieroberrts - Jul-05-2020, 07:56 PM - Forum: General Coding Help - Replies (1)

Hello,
I am currently making a music quiz game and I need to store the top 5 high scores the players of the game achieve.
Currently my code is this..... More

Print this item

  Simple code help
Posted by: bntayfur - Jul-05-2020, 07:22 PM - Forum: General Coding Help - Replies (2)

[python]
def is_integer_num(n):
if isinstance(n,float):
print(input(n))
else:
print("not a number")

n=input(..... More

Print this item

  Clear Cache Path
Posted by: sportcardinal - Jul-05-2020, 05:10 PM - Forum: General Coding Help - No Replies

How do I clear my cache path? I have a few API calls to get price data, but even though I am specifying to get data up until today, it seems like it o..... More

Print this item

  subprocess
Posted by: vinothkumargomu - Jul-05-2020, 04:38 PM - Forum: General Coding Help - Replies (3)

I want to execute below ansible playbook using python, can some one help me with subprocess for a variable? Basically am trying to achieve executing t..... More

Print this item

  drawing concentric circles with changing color animation
Posted by: CatherineKan - Jul-05-2020, 03:30 PM - Forum: GUI - No Replies

Hello,

I am quite new to python, and would like to try to make a project of 200 shells of concentric circles.

The circles radii change over time..... More

Print this item

  Automate process _ 2 cvs files
Posted by: Python_Fatli - Jul-05-2020, 02:21 PM - Forum: General Coding Help - Replies (1)

I’m new to python / pandas and wanted to see if its possible to automate our existing manual; process using python.

File1 (resource allocations). ..... More

Print this item

  insert more data at once in MongoDB
Posted by: Leon79 - Jul-05-2020, 12:42 PM - Forum: General Coding Help - Replies (2)

Hello Coders!

I'm trying to upload data with Python to MongoDB from a form in HTML.

I can do it with no problem if I upload only the form, but I..... More

Print this item

  Trouble getting pyuic5 to work
Posted by: RileyGH - Jul-05-2020, 12:27 PM - Forum: GUI - No Replies

Hi there. I just joined. I’m teaching myself some Python. My coding skills are OK, but my understanding of the inside of the OS etc is not (and I’m to..... More

Print this item

  What all do I need for a full stack web application?
Posted by: volunteers72 - Jul-05-2020, 07:52 AM - Forum: News and Discussions - Replies (7)

I realize this may not be the best place for this question, and I also know that there are many answers but I just want a definitive one for the momen..... More

Print this item

  read individual nodes from an xml url using pandas
Posted by: mattkaplan27 - Jul-05-2020, 12:49 AM - Forum: General Coding Help - Replies (5)

I am trying to read an XML file and access one specific attribute, in this case the DisplayName attribute, and use it to create a dataframe in Panda..... More

Print this item

  how to count a retransmission packets from pcap file?
Posted by: salwa17 - Jul-04-2020, 11:22 PM - Forum: General Coding Help - No Replies

How can count the retransmission packets from a pcap file without using pyshark please ?

I use this code with pyshark :


[python]def p..... More

Print this item

  Pandas DataFrame visual
Posted by: Truman - Jul-04-2020, 09:55 PM - Forum: Data Science - Replies (8)

[python]
import pandas as pd
area = pd.Series({'California': 423967, 'Texas': 695662,
'New York': 141297, 'Florida': 170312,
..... More

Print this item

  Improve performance
Posted by: squag - Jul-04-2020, 08:37 PM - Forum: Game Development - Replies (4)

Python beginner here. I coded waves / tides washing up on a beach. The "resolution" of the image depends on the value assigned to the "squaresize" var..... More

Print this item

  Decorator is using in class,but not working
Posted by: mbilalshafiq - Jul-04-2020, 08:19 PM - Forum: Homework - Replies (2)

[python]
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 23:46:47 2020

@author: Lenovo
"""
import pdb
import unittest
import math

class..... More

Print this item

Photo Help with Account login in Python
Posted by: Daku_Chishiki - Jul-04-2020, 06:07 PM - Forum: Homework - Replies (6)

Hi! I just start learning Python and I wanted to push myself and try to make a little program that will verify the user position, userid and password ..... More

Print this item

  error when trying to update mongodb
Posted by: damian0612 - Jul-04-2020, 03:49 PM - Forum: Web Scraping & Web Development - Replies (6)

I am working with flask trying to update a mongodb collection which works fine when I state the fieldname that needs updated, but I want to fieldname ..... More

Print this item

  macOS GUI
Posted by: pythonnewbi - Jul-04-2020, 01:04 PM - Forum: GUI - Replies (5)

I'd like to learn Python.

Is there a forum on Jython or do I need to find a Java forum?

I have a Mac laptop & a Mac desktop. I know that an olde..... More

Print this item

  Python Custom Module not working in Jupyter Notebook with Pandas
Posted by: fid - Jul-04-2020, 11:05 AM - Forum: Data Science - No Replies

Hi Guys,


I have made a custom code in Python that i was to apply to a spreadsheet with Jupyter Notebook.

I get the following error code and do..... More

Print this item

  newbie needs help with space invaders
Posted by: n0x - Jul-04-2020, 10:15 AM - Forum: Game Development - Replies (2)

So I've been working on my space invaders but I can't figure out how I have to solve that the bullet would stay on the same x coordinate when I press ..... More

Print this item

  Compile to Windows exe.
Posted by: SpongeB0B - Jul-04-2020, 07:42 AM - Forum: General Coding Help - Replies (6)

Hi everyone,

I'm looking for a compiler to complie .py to one single windows .exe (the compiler will run under windows also)

I've try already [b..... More

Print this item

  Not getting the return value
Posted by: rs74 - Jul-04-2020, 07:36 AM - Forum: General Coding Help - Replies (4)

Having some issues with return. Would like to get the return value (middle number) printed after "Middle number is ". Something obvious I presume but ..... More

Print this item

  Using matplotlib in Spyder v/s REPL
Posted by: peterjv26 - Jul-04-2020, 07:09 AM - Forum: General Coding Help - Replies (2)

Hi, I am just starting off with Python and was playing around with matplotlib package.
I wrote a few lines as below to plot a graph
[python]
def pl..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to put my game loop i... Less than 1 minute ago temlotresid6 Santoro Game Developm...
  My goal to be hired worki... 53 minutes 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 ...
  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... 511899
  Web Scraping ... 442139
  Newbie with P... 386220
  New Users Int... 379117
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
ndx101 Today
Santoro Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday

User Panel Messages

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