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,964
» Latest member: Edzed4431
» Forum threads: 38,730
» Forum posts: 175,547

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 36 Guest(s)
Apple, Bing, Facebook, Google, AOL, AOL

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: noisefloor
3 hours ago
» Replies: 4
» Views: 114
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:58 PM
» Replies: 1
» Views: 491
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,033
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,591
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 490
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 956
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 972
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,243
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,853
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,893

 
  bool b = (num == 100) this doesn't work?
Posted by: MelonMusk - Jun-11-2020, 11:57 PM - Forum: General Coding Help - Replies (2)

bool b = num == 100
why this doesn't work?

Print this item

  InstaPy Error
Posted by: boomcrafty - Jun-11-2020, 10:58 PM - Forum: General Coding Help - Replies (1)

Alright im having a problem when i start instapy. i have no experience with python so idk what im doing. somebody help. heres my error message.

[er..... More

Print this item

  Manipulating data from a CSV
Posted by: EvanS1 - Jun-11-2020, 08:25 PM - Forum: General Coding Help - Replies (5)

Hi Feel like I am missing something simple here.

I am importing data from a csv file. I want to create a number of lists to use elsewhere.

[pyt..... More

Print this item

  Packet Sniffer - TypeError: a bytes-like object is required, not 'str'
Posted by: cheffa2020 - Jun-11-2020, 05:56 PM - Forum: General Coding Help - Replies (4)

Hi folks, I'm in the process of creating a packet sniffer using Python 3.8. The goal is for it to isolate the RAW layer/load portion of a packet and p..... More

Print this item

  Topic: “Filter numbers with a list comprehension” (PyBite #107)
Posted by: Drone4four - Jun-11-2020, 03:55 PM - Forum: General Coding Help - Replies (4)

Here is the task I am working on: Write a script which receives a list of numbers and returns only the even numbers that are > 0 and even (divisible b..... More

Print this item

  Data Science Tutorials
Posted by: suyash401 - Jun-11-2020, 03:40 PM - Forum: Tutorial Requests and Submissions - No Replies

Hey Guys, I'm new to this community.
I'd like to share my articles/tutorials on Data Science.
I thought it would be wise to include them in one thre..... More

Print this item

  I get a name Name Error: when calling a method inside a class
Posted by: radoo - Jun-11-2020, 03:25 PM - Forum: GUI - Replies (2)

Hello,

I have a problem that I cannot resolve by myself. I am learning Python and Qt and I am trying to get the values of the buttons I push in the..... More

Print this item

  module 'os' has no attribute 'tmpfile'
Posted by: whois1230 - Jun-11-2020, 02:33 PM - Forum: General Coding Help - Replies (3)

Hello, I wrote the following program and tried to execute it:
[python]#!/usr/bin/python3.8
import os
# The file has no directory entries associated..... More

Print this item

  Minimal python install for thonny ide
Posted by: DanielRossinsky - Jun-11-2020, 02:28 PM - Forum: General Coding Help - No Replies

I'm currently working on an automated install for thonny ide and python. The thing is I can't use the thonny installer because I need python installed..... More

Print this item

  Overcoming ZeroDivisionError: division by zero Error
Posted by: dgrunwal - Jun-11-2020, 01:58 PM - Forum: General Coding Help - Replies (8)

In the data set I have 5 such lists (all zero values).

Is there a way I can eliminate this error in such cases? I could simply remove the lists, b..... More

Print this item

  join string lists
Posted by: redminote4dd - Jun-11-2020, 01:37 PM - Forum: General Coding Help - Replies (9)

Hello!
I have a lists which I want to join with the second item of itself

for exmaple:

1=[A, B, C, D]

I want python to output:

1=[AB, BC,..... More

Print this item

  Which databse "engine" is available?
Posted by: PeterLinux - Jun-11-2020, 12:56 PM - Forum: News and Discussions - Replies (5)

Hi, I just learned that some modules/libraries/engines which are available are deprecated or will be unsupported by future Python versions.

So what..... More

Print this item

  UnboundLocalError: local variable 'figure_perso' referenced before assignment
Posted by: mederic39 - Jun-11-2020, 12:11 PM - Forum: General Coding Help - Replies (2)

Hello,
I'm a French user (so my English is bad), and I make a "John Conway Life's Game".
I want to make a function that place where you want ..... More

Print this item

  Practice coding through hackathon!!
Posted by: TheOutcast - Jun-11-2020, 12:03 PM - Forum: News and Discussions - No Replies

I've been trying to practice my coding skills through hackathons and found one that helps protect users info and data. Anyone interested to join? htt..... More

Print this item

  Tkinter GUI gets very slow and stuck
Posted by: Omer - Jun-11-2020, 11:28 AM - Forum: GUI - Replies (15)

Hello,
I have created a Tkinter GUI script which monitor a PLC unit's I/O's in real time.
Therefore , i created a Modbus TCP/IP communication to the..... More

Print this item

  Keep getting, OperationalError: near "%": syntax error
Posted by: fholm11 - Jun-11-2020, 09:08 AM - Forum: General Coding Help - Replies (1)

I keep getting this error and i am not sure on how to fix it. It shouldn't be a formatting/brackets thing but at this point I wouldn't be surprised. T..... More

Print this item

  miscalculation on "100*e-6"
Posted by: cools0607 - Jun-11-2020, 07:54 AM - Forum: General Coding Help - Replies (4)

I am trying to make a calculation: 100*e-6, but got wrong answer: 9.999999999999999e-05.
I also tried: [color=#C0392B]100*0.00..... More

Print this item

  Serial Port data readout
Posted by: macellan85 - Jun-11-2020, 07:48 AM - Forum: GUI - Replies (3)

Hello,

I have designed a python serial link reader using tkinter and having some problem. The system is constructed on an arduino + tkinter reader..... More

Print this item

  CGI: Error 500
Posted by: PeterLinux - Jun-11-2020, 05:27 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello, I'm new to Apache/LAMPP and CGI.

I tried the example CGI script from here:
https://wiki.python.org/moin/CgiScripts

But in my browser (at http..... More

Print this item

  Is there a simplified way to achieve this
Posted by: Andrewbf - Jun-11-2020, 05:24 AM - Forum: General Coding Help - Replies (1)

Hi guys,
Wondering if there is a better way to achieve this? In an ideal world the level value would count down -1000 to -6000 over 2 seconds.
I'm a..... More

Print this item

  Deque to string in Python 3
Posted by: anthares - Jun-11-2020, 05:07 AM - Forum: General Coding Help - Replies (4)

Hi everyone,

Fairly new to Python here and dealing with some legacy code.

n Python2 I was able to do something similar to:

[python]frames = d..... More

Print this item

  Exercism not working
Posted by: pav1983 - Jun-11-2020, 03:45 AM - Forum: Bar - Replies (2)

Hello,

I'm extremely frustrated. I am trying to use Exercism because it's free and offers free mentoring. I already installed it on my computer. T..... More

Print this item

  How do you find the length of an element of a list?
Posted by: pav1983 - Jun-11-2020, 03:16 AM - Forum: Homework - Replies (13)

How do list the length of each string in a list?

Here is the question.

"[i]Create a function that takes a list of words and transforms it into a lis..... More

Print this item

  Making a login page
Posted by: card51shor - Jun-11-2020, 03:02 AM - Forum: Homework - Replies (41)

Hey guys I'm working on a log in page and I'm getting an error that it's a tuple value but I am just trying to get one value. Does anyone see the err..... More

Print this item

  Generate Test data (.csv) using Pandas
Posted by: Ashley - Jun-11-2020, 02:45 AM - Forum: Data Science - Replies (5)

I want to generate the test data in (.csv format) using Python.
Below is my script using pandas but I'm stuck at randomly generating test data for a ..... More

Print this item

  NameError: name 'print_string' is not defined
Posted by: jamie_01 - Jun-11-2020, 02:40 AM - Forum: Homework - Replies (2)

[python]
def ground_shipping_cost(weight):
if (weight <= 2): # 2 pounds or less
price = 1.50
elif (weight > 2) or (weight <= 6):
price = 3..... More

Print this item

  Help with stripping special char and spaces
Posted by: mumstead - Jun-10-2020, 09:16 PM - Forum: Homework - Replies (7)

Hi,
New to coding in my first class. Catching on but have no clue how to attack this problem I have now.
I am tasked with The user should be promp..... More

Print this item

  bulk update in elasticsearch
Posted by: pythonlearner1 - Jun-10-2020, 08:05 PM - Forum: General Coding Help - Replies (1)

I am trying to update bulk document to elasticsearch

I am able to update this one by one document

following code works

[python]
elastic_..... More

Print this item

  ValueError: invalid literal for int() with base 10:
Posted by: omega_elite - Jun-10-2020, 07:56 PM - Forum: General Coding Help - Replies (5)

Hi

I am new to python and am playing with some code that I got on an online course but am getting this error "ValueError: invalid literal for int(..... More

Print this item

  Matlab to Python -- Parallel Computing
Posted by: zistambo - Jun-10-2020, 04:45 PM - Forum: General Coding Help - Replies (1)

Hello All,

I am new to Python programming, and I can probably write a for-loop in Python, but not much else.

I would like to test the performance of..... More

Print this item

  Is this code pythonic
Posted by: Emekadavid - Jun-10-2020, 02:42 PM - Forum: Homework - Replies (2)

As a beginner, I aim to write pythonic code because that would get me motivated into doing python the pythonic way. I was doing this challenge on 2d l..... More

Print this item

  Python changed array shape without telling me
Posted by: BrendanGolledge - Jun-10-2020, 02:11 PM - Forum: Data Science - Replies (3)

I was trying to write some simple code to practice using the linear regression in sklearn. For God knows what reason, LinearRegression.fit(x,y) expec..... More

Print this item

  My code which adds fibonacci numbers to a list adds too many terms.
Posted by: STBK - Jun-10-2020, 01:58 PM - Forum: General Coding Help - Replies (7)

Hi, I am new to programming and am self-learning, using projecteuler as a source of questions. I am trying to create a program which generates the fib..... More

Print this item

  Tkinter Tic Tac Toe updated
Posted by: menator01 - Jun-10-2020, 01:49 PM - Forum: Code sharing - Replies (3)

Here is the 2nd go.
Hope you enjoy.
As always, I welcome feedback.

[python]
#! /usr/bin/env python3
'''Tkinter TIC TAC TOE'''

# Do the impor..... More

Print this item

  Appending object to array
Posted by: Busby - Jun-10-2020, 01:43 PM - Forum: General Coding Help - Replies (2)

I'm trying to append objects to an array with the following code

[python] model_array = [model 1, model 2, model 3]
json_array = []
m..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 3 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...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
Most views
  The best Prog... 577204
  Tutorial Requ... 500233
  Web Scraping ... 440902
  Newbie with P... 384918
  New Users Int... 369212
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
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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