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,304
» Latest member: IFDA123
» Forum threads: 38,798
» Forum posts: 175,903

Full Statistics

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

Latest Threads
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
1 hour ago
» Replies: 3
» Views: 87
No new line from print in...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 2
» Views: 27
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 8
» Views: 642
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,803
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 130
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 112
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 196
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,210
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 305
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 190

 
  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

  Any input passes and an "A"
Posted by: JTNA - Mar-08-2019, 03:35 PM - Forum: General Coding Help - Replies (3)

apparently any str passes as an "A" in my code. how do i fix this

[python]
gradeletter = str(input("Enter your Letter Grade: "))
def GPAcalc(grade):
..... More

Print this item

  Input as function parameter
Posted by: dan789 - Mar-08-2019, 03:07 PM - Forum: General Coding Help - Replies (1)

When we have a function like this:

def function(param1, input=""):
    ...
What´s the variable of that input? How can I use it..... More

Print this item

  how to take out duplicates from a list?
Posted by: helpme - Mar-08-2019, 01:55 PM - Forum: Homework - Replies (2)

Hello! So my teacher wants up to take out duplicates from a list that the user puts. This is my code:

[python]
num=int(input("First List- How man..... More

Print this item

  python can't showing version
Posted by: bajjol - Mar-08-2019, 01:19 PM - Forum: Web Scraping & Web Development - Replies (2)

i have a problem here

when i want to check my python version on cmd, it wasn't showing a version and opened to gpython.exe, i dont know what is goi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Input as not default method parameter
Posted by: dan789 - Mar-08-2019, 12:26 PM - Forum: General Coding Help - Replies (4)

Hi all.

I have a project, containing class and this method:
[python]
...
def start(self, input="", number_occur, max_value):
self.m..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python is not working on ... 1 hour ago lary_p lary_p General Codin...
  No new line from print in... 2 hours ago Lou bowlofred General Codin...
  Help with Serial.write in... 3 hours ago racingsubby Larz60+ General Codin...
  Can I develop a live vide... Yesterday, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
Most views
  The best Prog... 579431
  Tutorial Requ... 512530
  Web Scraping ... 442312
  Newbie with P... 386367
  New Users Int... 380595
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+ 12113
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
IFDA123 Today
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday
Jonathan Yesterday

User Panel Messages

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