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,941
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,516

Full Statistics

Online Users
There are currently 37 online users.
» 1 Member(s) | 32 Guest(s)
Google, AOL, AOL, paul18fr

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 8
» Views: 259
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
6 hours ago
» Replies: 0
» Views: 83
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,451
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 856
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,688
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,205
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,727
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,529
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,634
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,819

 
  SyntaxError: invalid syntax
Posted by: Truman - Mar-20-2018, 01:45 PM - Forum: General Coding Help - Replies (7)

I'm practising developing classes and wrote this code.

[python]
class Employee:

raise_amt = 1.04

def __init__(self, first, last, pay)..... More

Print this item

  how to parse multipart/form-data for xls or jpeg stream into python code and store
Posted by: v71017 - Mar-20-2018, 01:09 PM - Forum: General Coding Help - No Replies

Hi All,
I am facing an issue. I have an AWS API gateway and I am post some raw data and MS XLS file using postman to a AWS Lambda function. AWS API..... More

Print this item

  Fetching html files from local directories
Posted by: shiva - Mar-20-2018, 12:48 PM - Forum: General Coding Help - Replies (3)

[python]import os
import urllib.request

# the path where the html is located
path = r"C:\Users\The Capricorn\Documents\Html"


for filename..... More

Print this item

  Trying to append List/array based on condition
Posted by: Mr_Keystrokes - Mar-20-2018, 12:18 PM - Forum: General Coding Help - Replies (1)

I'm having problems appending array based on an if statement.

[python]
all_staff = ["Judith", "Harry", "Jonathan", "Reuben"]
new_staff = []


..... More

Print this item

  first paramiko ssh script getting getting stuck.. while run through crontab
Posted by: anna - Mar-20-2018, 11:55 AM - Forum: General Coding Help - Replies (2)

Hi All,

My first ssh script to collect output, output file is almost 100000 lines, its runing ok through prompt however
while runing through cron..... More

Print this item

  Print("") vs Print(end="\n")
Posted by: 3go - Mar-20-2018, 07:54 AM - Forum: General Coding Help - Replies (1)

While I tested, who fast some functions are, I tested the "print" function.
So I found out that print(end="\n") is faster.
Is there any reason then ..... More

Print this item

  Pythonosc- turn on server for 10 minutes and close in a loop
Posted by: SwethaSharma - Mar-20-2018, 05:45 AM - Forum: Networking - No Replies

Hi Everyone,


I am using python osc for connecting to a sensor, I want to connect to the sensor for 10 minutes receive the messages and close ..... More

Print this item

  millions rows and 40 columns
Posted by: garikhgh0 - Mar-20-2018, 05:24 AM - Forum: News and Discussions - Replies (4)

hello. I want to ask a question.
I use python in analitycs, but sometimes I must hundle datas with millions rows and 40 columns. When uploading data,..... More

Print this item

  getting a full path string from a pathlib.PurePath object
Posted by: Skaperen - Mar-20-2018, 05:15 AM - Forum: General Coding Help - Replies (14)

is the proper way to get the plain string path of a pathlib.PurePath object or pathlib.Path object to pass it to str() and use what that returns? tha..... More

Print this item

  Trouble deploying Django/wagtail on Ubuntu 14.04
Posted by: Drone4four - Mar-20-2018, 04:14 AM - Forum: Web Scraping & Web Development - No Replies

I successfully installed wagtail’s bakery demo..... More

Print this item

  What after basics of Python?
Posted by: MrPeanutbutter - Mar-19-2018, 09:36 PM - Forum: News and Discussions - Replies (2)

Hi! I have been learning programing since 2013 (C++, PHP) and I would to develop my programming skills in Python. And this the question: what after ba..... More

Print this item

  From flat to nested structure
Posted by: CptHaddock - Mar-19-2018, 08:20 PM - Forum: General Coding Help - Replies (5)

Most Venerable Coders,

I've got seemingly innocent problem I cannot crack properly (I'm not proficient in Python though). I've got a flat data struct..... More

Print this item

  Decoding Hex / understanding Code
Posted by: NoWay - Mar-19-2018, 06:11 PM - Forum: General Coding Help - Replies (4)

Hi folks,

i'm new here and not a python crack. :)

Just started with node js and try to port a simple python application.
My problem is now, i don't ..... More

Print this item

  Recover the versions of SSL/TLS used by a website
Posted by: madem - Mar-19-2018, 05:53 PM - Forum: Web Scraping & Web Development - No Replies

Hello

I would like to write a script python (version 2.7) which permit me to déterminate which versions of SSL/TLS (and the cryptographic algorithm..... More

Print this item

  Convert indexing For Loop from MATLAB (uses numpy and pandas)
Posted by: bentaz - Mar-19-2018, 04:49 PM - Forum: Data Science - Replies (3)

Hello,

I am trying to convert a program to Python (using numpy and pandas as well) from MATLAB. The input is a (n by 2) array called scaletestmatri..... More

Print this item

  getting previous/next valid value in a list, cyclically
Posted by: studeo - Mar-19-2018, 03:30 PM - Forum: General Coding Help - Replies (5)

I have a list of values... some are valid, some invalid (containing None). I test each element for validity. When I find an invalid element, I need to..... More

Print this item

  Can't understand the code
Posted by: SelectiveDuplicate - Mar-19-2018, 03:29 PM - Forum: General Coding Help - Replies (2)

The following code is a solution for a string-related problem:

[python]for method in [str.isalnum, str.isalpha, str.isdigit, str.islower, str.isupp..... More

Print this item

  Excel Filter and copy data by python
Posted by: ls_01 - Mar-19-2018, 03:17 PM - Forum: General Coding Help - No Replies

I am new to Python.But the new person gets a new concept(for me).I am having one excel sheet which needs to filtered according age of the tickets abov..... More

Print this item

  Beginner code help
Posted by: SuperNova - Mar-19-2018, 02:35 PM - Forum: General Coding Help - Replies (8)

Hi everyone, I am new to Python and would appreciate some greatly needed help. I am using functions with csv files and my code doesn't seem to work, p..... More

Print this item

  beginner : unexpected EOF errors
Posted by: upasana - Mar-19-2018, 02:13 PM - Forum: General Coding Help - Replies (6)

Hi..
I am new to python programming. I am trying to generate a raster plot here.

my code:
[python]from brian2 import *
import matplotlib


s..... More

Print this item

  derivatives
Posted by: kc4566 - Mar-19-2018, 02:11 PM - Forum: Homework - Replies (4)

I am trying to use a specific formula that sort of uses it self over and over, been trying to figue it out on my own please help me. Thank you
[pyth..... More

Print this item

  decorators
Posted by: mp3909 - Mar-19-2018, 11:04 AM - Forum: General Coding Help - Replies (9)

How do I pass an argument z to my decorator function? Here is my code:

[python]def partial(func,z):
def wrapper(first, second):
first = fir..... More

Print this item

  Cobol code to English like language/Identify ENDIF for correspoding IF in a string
Posted by: Venkat - Mar-19-2018, 09:57 AM - Forum: General Coding Help - Replies (6)

HI All,

I have a requirement where I get an excel spreadsheet with small Cobol code in a cell.
Sample Code :

If studentGrade >= 90 Then
2 resul..... More

Print this item

  unsupported operand type
Posted by: newgate - Mar-19-2018, 09:40 AM - Forum: General Coding Help - Replies (5)

Hello guys,
I'm wondering what's wrong with my code, i wrote it form a c++ code but it doen't work, can someone please tell me what should I do to ge..... More

Print this item

  [split] Paspberry Pi and Python - how to write code
Posted by: soona - Mar-19-2018, 09:21 AM - Forum: General Coding Help - Replies (1)

how to write the code to Raspberry Pi in Python code.

Print this item

  Python Kivy
Posted by: Emerogork - Mar-19-2018, 09:20 AM - Forum: GUI - Replies (1)

I am scarcely beyond Hello World with Python/Kivy and am stuck.
The code is from a Kivy tutorial and is in a .py and a .kv file. There are scarcely 2..... More

Print this item

  Beginner user: mathematical operations
Posted by: Mahdi1994 - Mar-19-2018, 08:56 AM - Forum: General Coding Help - Replies (1)

Might you please help me code the following imaginary system using jupyter notebook?
I want to plot some of these variables and analyse their behavio..... More

Print this item

  cx-Freeze exe doesn't work
Posted by: ammann - Mar-19-2018, 08:40 AM - Forum: General Coding Help - Replies (1)

Hi, I created .exe file from my .py file with cx_Freeze. Exe file created successfully, but now, when I want to run file, only command window opens in..... More

Print this item

  list iterate .. help
Posted by: anna - Mar-19-2018, 07:08 AM - Forum: General Coding Help - Replies (5)

Below script read line from ARP file and split line into multiple list, like IP, MAC, interface and numeric interface,

arp file details are as belo..... More

Print this item

  csv.reader vs csv.dictReader
Posted by: mepyyeti - Mar-19-2018, 06:52 AM - Forum: General Coding Help - Replies (3)

I'm having a lot of difficulty understanding the difference between csv.reader and csv.dictReader. The Python docs didn't shed much light for me on t..... More

Print this item

  dictionary to storred data
Posted by: tonyk334 - Mar-19-2018, 05:19 AM - Forum: General Coding Help - Replies (2)

Hi All

i just start python and if possible help with dictionary

INPUT FILE
THE 1-3 KEY value
1 2 3
ABC E 00001
ABC E 00003
ABC B 00001..... More

Print this item

  Using lists, can't seem to get a total...
Posted by: Cardinal07 - Mar-19-2018, 01:59 AM - Forum: Homework - Replies (3)

Hello Everyone, I am learning how to make and use lists in python. I have a simple program made and I am struggling at the point when trying to get a ..... More

Print this item

  stdout
Posted by: Skaperen - Mar-19-2018, 01:23 AM - Forum: General Coding Help - No Replies

is there a way, that works in both Python2 and Python3, to set stdout to always automatically flush at the end of every print command or function, at ..... More

Print this item

  lost tweet
Posted by: Skaperen - Mar-19-2018, 12:37 AM - Forum: Bar - No Replies

i have 2 twitter accounts that follow each other. i tried tweeting from one of them direct at (by beginning with @ and the name of the other account)..... More

Print this item

  Issue with special characters
Posted by: Tiskolin - Mar-19-2018, 12:34 AM - Forum: General Coding Help - Replies (2)

I need to use special characters such as ▒ and █ in my code, and save these to a text file.
However, I am getting an encoding error:
[error]UnicodeEnc..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 4 hours ago Anunderling deanhystad General Codin...
  A coding beginner needs h... 6 hours ago Littlefish Littlefish General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576544
  Tutorial Requ... 498503
  Web Scraping ... 440419
  Newbie with P... 384321
  New Users Int... 367500
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+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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