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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,558

Full Statistics

Online Users
There are currently 43 online users.
» 1 Member(s) | 38 Guest(s)
Bing, Google, AOL, AOL, snippsat

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
4 hours ago
» Replies: 2
» Views: 733
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 6
» Views: 767
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
Yesterday, 04:45 PM
» Replies: 0
» Views: 85
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 483
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,863
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,261
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,826
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,246
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,187
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,493

 
  coding improvement tips
Posted by: vaisesumit29 - Mar-10-2019, 03:53 PM - Forum: General Coding Help - Replies (1)

Hi All,
I am apologizing in advance if it wastes your time. Because it's not a question regarding any topic. It is for my improvement. Experts can su..... More

Print this item

  Pandas, cryptocurrency and some calculations
Posted by: vvinni - Mar-10-2019, 03:52 PM - Forum: Data Science - No Replies

I'm an amateur programmer. I'm having trouble understanding if pandas are my best option or if there is a better one in the Python community.

I wan..... More

Print this item

  simple syntax question
Posted by: speedskis777 - Mar-10-2019, 02:48 PM - Forum: General Coding Help - Replies (7)

Hi.

Why does the order matter here? What would be the correct syntax to print two True statements?
[python]var = "*"
print(var == ("/" or "*"))
..... More

Print this item

  Why isn't this working. I've made it as simple as posible
Posted by: gcryall_Forum - Mar-10-2019, 01:44 PM - Forum: General Coding Help - Replies (3)

[python]
from tkinter import *
from sqlite3 import *

def center(toplevel): #Run outside the Class definition
toplevel.update_idletasks()
..... More

Print this item

  Code Change Help: Infinite Loop Error
Posted by: bindulam - Mar-10-2019, 01:13 PM - Forum: General Coding Help - Replies (2)

[Image: m1ExX.png]

[python]

# coding: utf-8

# In[1]:


import queue

import sys..... More

Print this item

  SOAP based webservice invoke
Posted by: mehrdadabedi - Mar-10-2019, 12:49 PM - Forum: General Coding Help - Replies (1)

Hello all

I have project to do which include invoking a web service and some values return to my python code.
the company which provided the API c..... More

Print this item

  A program for backing up documents (doesnt work(code is inside))
Posted by: Richard_SS - Mar-10-2019, 12:00 PM - Forum: Homework - Replies (4)

The programm should create a backup of selected folder into a folder with a name as current data, and backed up archive should be named as current tim..... More

Print this item

  How to create meshgrid with non-integer stepsize of list elements?
Posted by: dazzabaijan - Mar-10-2019, 11:21 AM - Forum: General Coding Help - Replies (1)

I have 2 lists of x and y coordinate that are independently generated, with a/h amount of points between 0 and a.
[python]
x = np.linspace(0..... More

Print this item

  Converting list elements and sublists from int to str
Posted by: iMuny - Mar-10-2019, 11:12 AM - Forum: General Coding Help - Replies (5)

Hello everyone, I'm new to python and currently stuck on a problem,I want to convert a list containing variable data types to strings while maintainin..... More

Print this item

  __iadd__ and TypeErrors
Posted by: DJPunk - Mar-10-2019, 07:35 AM - Forum: Homework - Replies (1)

I've got __iadd__ working for the Point class, but don't know how to implement it to where it works for the Circle class. It should work like this:
..... More

Print this item

  About getattr()
Posted by: MingyuanLuo - Mar-10-2019, 06:48 AM - Forum: General Coding Help - Replies (7)

[python]
In[1]: getattr(None, '') is None
Traceback (most recent call last):
File "C:\Users\myluo\AppData\Local\Programs\Python\Python36\lib\site..... More

Print this item

  Console not giving any response to this program.
Posted by: FWendeburg - Mar-10-2019, 04:37 AM - Forum: General Coding Help - Replies (1)

Hi again, I'm making this encryption\decryption algorithm but now that I'm working with the decryption part the code doesn't output anything.
[python..... More

Print this item

  mixed decimal point characters
Posted by: Skaperen - Mar-10-2019, 04:20 AM - Forum: General Coding Help - Replies (1)

i have some data in a timed mix to be processed by a Python program i wrote. some of the data uses the European standard of ',' for the decimal point..... More

Print this item

  Tkinter platformer game
Posted by: Linch1 - Mar-09-2019, 09:56 PM - Forum: Game Development - Replies (1)

I'm trying to create a platformer with tkinter,
i've created the character and now i'm trying to create a dynamic background with a biomes system so..... More

Print this item

  Need help on making raycasting faster
Posted by: robie972003 - Mar-09-2019, 09:34 PM - Forum: General Coding Help - Replies (2)

I need help making my raycaster faster as it takes time to render the image after
input. I have tried doing the turtle.tracer(0, 0) thing but it is s..... More

Print this item

  Flask Restful template for testing purposes
Posted by: rootVIII - Mar-09-2019, 07:18 PM - Forum: Code sharing - No Replies

I'm really enjoying flask... lots of fun! Here's a basic example... I use it just for tes..... More

Print this item

  how to get the value out the def function
Posted by: dan_py - Mar-09-2019, 05:35 PM - Forum: General Coding Help - Replies (2)

Error:
Error : print(choice_cost + car_cost) NameError: name 'choice_cost' is not defined
thank you

[python]"""Total Car Cost"""

ca..... More

Print this item

  curious syntax with dictionary item
Posted by: inselbuch - Mar-09-2019, 03:57 PM - Forum: General Coding Help - Replies (3)

d = {}
a = "hello"
d['x'] = a,
print(d)
Here's the result:

{'x': ('hello',)}

Python created the item as a two-element..... More

Print this item

  unexpected EOF while parsing
Posted by: whatloop - Mar-09-2019, 02:47 PM - Forum: General Coding Help - Replies (3)

On executing the script the python prompts for number until the user enters null as an input
[python]
def main():
total = 0
numbe..... More

Print this item

  Advices to use class or pure functions
Posted by: Jackhammer - Mar-09-2019, 02:19 PM - Forum: News and Discussions - Replies (2)

Hello folks!

I'm totally new using Python (coming from Java/Scala world) and I'm refactoring a project that does a lot ETL things using pandas. This ..... More

Print this item

  TypeError: cannot create weak reference to 'str' object
Posted by: Harryjduke - Mar-09-2019, 01:45 PM - Forum: General Coding Help - Replies (2)

Hello, I'm trying to fix an outdated piece of code someone made called ItChat: https://github.com/jerrypnz/ItC[url=https://python-forum.io/thread-16668.html]..... More

Print this item

  Converting R code to python
Posted by: mcva - Mar-09-2019, 01:28 PM - Forum: General Coding Help - Replies (2)

I´m trying to convert the following R code to python but theres something wrong with my code results are not the same can you take a look at it? Thank..... More

Print this item

  sympy
Posted by: psosmol - Mar-09-2019, 11:16 AM - Forum: Data Science - Replies (9)

Hello when I try the next code with sympy I can not cath the exeption of SyntaxError
[python]from sympy.abc import x, y
try:
e =x + y + x)
# ex..... More

Print this item

  Failed Install NetfilterQueue
Posted by: Alamily - Mar-09-2019, 08:37 AM - Forum: General Coding Help - Replies (3)

Hello
I'm using Win 10 with Python 3.7, I want to instal NetfilterQueue lib but each time I've got this error message:

command 'C:\\Program Files ..... More

Print this item

  what is your fav config file format?
Posted by: Skaperen - Mar-09-2019, 07:34 AM - Forum: Bar - No Replies

what is your favorite config file format if you are developing a program that needs to be configured by the sysadmin and/or the user? do you have dif..... More

Print this item

  May my 'particular' Py2 coexists with Py3 in Windows OS?
Posted by: samsonite - Mar-09-2019, 05:35 AM - Forum: General Coding Help - Replies (6)

My abrupt answer in _no_, because pip2 installation interfers (as far as I know) with pip of Py3, but I'm confident in forum's drifts to overcome the ..... More

Print this item

  readshapefile function in basemap - confusion regarding arguments
Posted by: sendiptangshu - Mar-09-2019, 05:14 AM - Forum: General Coding Help - Replies (1)

I need the map of a particular city in detail. I obtained the shapefile for the same in the form of a zipped folder.

I have already obtained the l..... More

Print this item

  Python - help for beginner
Posted by: Kyriakospan - Mar-09-2019, 02:13 AM - Forum: General Coding Help - Replies (2)

Hello, im planning to create a python program and i need some advices for beginner.
The program is about cards. I will have 52 cards, i want to store..... More

Print this item

  Interfacing Google Chrome & Python
Posted by: akornrumpf - Mar-09-2019, 01:51 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi all, first post - looks like I'm swimming in the deep end already - anyone got waterwings? Angel Cool

"Script Goal:

Identify progr..... More

Print this item

  Strange Python Error
Posted by: moga2003 - Mar-09-2019, 01:17 AM - Forum: Homework - Replies (3)

Good evening,

When running my code, it is giving me an error that I am not understanding as it has lines referenced that I don't have. My code onl..... More

Print this item

  Need help with arithmetic calculation
Posted by: rakesh561 - Mar-08-2019, 09:54 PM - Forum: General Coding Help - No Replies

Can some one help me with below scenario i have lot of files in a folder in linux
where i have files with data like usually that data is per host and..... More

Print this item

  my earliest completed script
Posted by: Skaperen - Mar-08-2019, 09:50 PM - Forum: Code sharing - No Replies

this is my earliest completed script from 2009. i originally wrote this in the Pike language. because both Pike and Python support unlimited precisi..... More

Print this item

  Program gives error but doesn't say where the error is.
Posted by: FWendeburg - Mar-08-2019, 08:48 PM - Forum: General Coding Help - Replies (3)

Hi, i'm making an encryption algorithm but when I test it it gives me a strange error which i can't correct because it doesn't say where. I only have ..... More

Print this item

  Adding a line number to an lxml Element
Posted by: vindy - Mar-08-2019, 08:32 PM - Forum: General Coding Help - No Replies

I am trying to find a way to add a line number from the original XML text to each element that is built in an XML tree from python's lxml modules. Som..... More

Print this item

  Auto activate conda env in Pycharm terminal
Posted by: ntuttle - Mar-08-2019, 03:56 PM - Forum: General Coding Help - No Replies

I'm using conda for environment management. The terminal properly opens to my project directory every time but when I open up a new terminal I have to..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 4 hours ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 11 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... Yesterday, 16:45 fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [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... 577320
  Tutorial Requ... 500595
  Web Scraping ... 440989
  Newbie with P... 385025
  New Users Int... 369491
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Yesterday
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday
PhamMaria Yesterday

User Panel Messages

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