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,366
» Latest member: cruisesfares
» Forum threads: 38,816
» Forum posts: 175,995

Full Statistics

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

Latest Threads
What is the penalty for c...
Forum: News and Discussions
Last Post: cruisesfares
7 minutes ago
» Replies: 0
» Views: 2
Looking for constructive ...
Forum: News and Discussions
Last Post: MarkHenry
3 hours ago
» Replies: 1
» Views: 1,195
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Yesterday, 11:52 AM
» Replies: 0
» Views: 60
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 07:43 AM
» Replies: 1
» Views: 81
Spaces in string
Forum: General Coding Help
Last Post: Mallard
Dec-19-2025, 01:04 PM
» Replies: 9
» Views: 398
[split] Screen recording ...
Forum: Bar
Last Post: Biks
Dec-18-2025, 01:13 PM
» Replies: 9
» Views: 11,134
I'm assuming you're askin...
Forum: General Coding Help
Last Post: DavidSah
Dec-18-2025, 01:54 AM
» Replies: 0
» Views: 149
Division
Forum: General Coding Help
Last Post: Mallard
Dec-17-2025, 03:47 PM
» Replies: 9
» Views: 381
How to Randomly Print a Q...
Forum: General Coding Help
Last Post: zodazy
Dec-16-2025, 05:29 PM
» Replies: 13
» Views: 6,687
My regex function is not ...
Forum: General Coding Help
Last Post: SledgeNE
Dec-15-2025, 06:42 AM
» Replies: 5
» Views: 713

 
  How would i go about making test-pattern images through Rpi via HDMI?
Posted by: john.t - Oct-08-2016, 07:10 AM - Forum: GUI - Replies (1)

Hello,
Iv'e just started using raspberry pi and people told me that python is a good code language to start playing with RPi.
My question is does an..... More

Print this item

  How do i get emacs to show a 79 character line limit ?
Posted by: Skaperen - Oct-08-2016, 05:38 AM - Forum: General Coding Help - Replies (7)

"Limit all lines to a maximum of 79 characters." lots of my CLI windows are 166 characters wide.  but i often edit python files there.  i use emacs in..... More

Print this item

  Need help with lists to continue my assignment code
Posted by: tinabina22 - Oct-07-2016, 10:07 PM - Forum: Homework - Replies (9)

How can I add a name and password to my list named, "samplePasswordFile" using Python 3...... More

Print this item

  grid layout
Posted by: neech - Oct-07-2016, 06:18 PM - Forum: GUI - Replies (8)

I would like to be consistent in my window management (I heard that was best practice). However, I have a window that is 800x400 which is the size of ..... More

Print this item

  Homework help
Posted by: nzieno - Oct-07-2016, 04:00 PM - Forum: Homework - Replies (11)

So my issue is this we have started using functions and the module we are supposed to import does not import its from a zip file for examples from the..... More

Print this item

  Windows/Power Shell: Differences from the tutorial...
Posted by: diemildefreude - Oct-07-2016, 11:05 AM - Forum: News and Discussions - Replies (22)

I've switched to using the "Learn Python the Hard Way" method, which includes an appendix on learning to use the Powershell/other commandinput methods..... More

Print this item

  splitting a string numeically
Posted by: Skaperen - Oct-07-2016, 06:49 AM - Forum: General Coding Help - Replies (14)

i am looking for something that can split a string at a specific interval rather than by content

[python]a = '0123456789abcdefghijklmnopqrstuvwxyz'..... More

Print this item

  in tutorials: Never use "for i in range(len(sequence)):
Posted by: Skaperen - Oct-07-2016, 04:54 AM - Forum: General Coding Help - Replies (1)

i just saw this tutorial.  i have had a couple cases where i n..... More

Print this item

  Ternary/Conditional Expressions
Posted by: Mekire - Oct-06-2016, 10:43 PM - Forum: Fundamentals - Replies (1)

If you have ever required a simple if/else statement in your code then conditional expressions might be of interest to you.

The standard if/else st..... More

Print this item

  Lambda: How, Why, and Why not.
Posted by: Mekire - Oct-06-2016, 10:30 PM - Forum: Fundamentals - No Replies

When I first started learning python I found lambda extremely confusing.  It isn't that there is anything particularly complicated about it; but somet..... More

Print this item

  Never use "for i in range(len(sequence)):"
Posted by: Mekire - Oct-06-2016, 10:23 PM - Forum: Common pitfalls and what to do - Replies (5)

This will be pretty short and to the point, but I find my self typing this out far too often these days and want something to link to.

Most languag..... More

Print this item

  Classes [advanced]: Descriptors (managed attributes)
Posted by: Mekire - Oct-06-2016, 10:12 PM - Forum: Fundamentals - Replies (1)

This is related to my other tutorial Classes [advanced]: Depe[url=https://python-forum.io/thread-361.html]..... More

Print this item

  Classes [advanced]: Dependent attributes (and Descriptors)
Posted by: Mekire - Oct-06-2016, 10:08 PM - Forum: Fundamentals - Replies (1)

Sometimes in our classes it becomes convenient, and occasionally necessary, to have attributes which are dependent on one another.  Before beginning I..... More

Print this item

  Junior Python Developer in London
Posted by: StackJobs - Oct-06-2016, 08:17 PM - Forum: Jobs - Replies (1)

Hi guys,
we would like to share our latest offer:
https://stackjobs.co.uk/jobs/junior-soft...ue-ai/299/

True AI is working on pro..... More

Print this item

  support plugin solved/best answer/etc
Posted by: metulburr_testing - Oct-06-2016, 07:59 PM - Forum: Board - Replies (12)

testing support plugin

:wall:

Print this item

  Check if multiple values exist in a list
Posted by: glidecode - Oct-06-2016, 06:50 PM - Forum: General Coding Help - Replies (5)

I am trying to find a way of testing whether or not at least one element from a list #1 is present in a list #2
One thing I've found is this thread: ..... More

Print this item

  [split] My opinion about OS choice for programming
Posted by: wavic - Oct-06-2016, 06:37 PM - Forum: News and Discussions - Replies (12)

I want to share with you guys a thought crossed my mind.
I've read this and also all post he..... More

Print this item

  Julian Day
Posted by: sparkz_alot - Oct-06-2016, 03:39 PM - Forum: Code sharing - Replies (14)

Here is another Python piece of code derived from Jean Meuus' book "Astronomical Algorithms"
to compute the Julian Day (JD) for a given Gregorian dat..... More

Print this item

  Mark posts as SOLVED
Posted by: iFunKtion - Oct-06-2016, 11:05 AM - Forum: Board - Replies (22)

Is there a way to mark a post as SOLVED at all. I find SOLVED threads in forums extremely useful and I for one try my hardest to document any solution..... More

Print this item

  matplotlib barh y tick alignment
Posted by: iFunKtion - Oct-06-2016, 10:53 AM - Forum: General Coding Help - Replies (2)

Hi,

Can't seem to get the y tick labels to line up nicely on the horizontal bar chart in this sub plotted chart (bottom chart). I have found variou..... More

Print this item

  BeautifulSoup help !
Posted by: navsid - Oct-06-2016, 09:38 AM - Forum: Web Scraping & Web Development - Replies (3)

So I've just started up with python and an assignment was given to me by a company as an recruitment task.

I need to web scrap the coupons of all t..... More

Print this item

  can't get xticks to work
Posted by: iFunKtion - Oct-06-2016, 09:27 AM - Forum: General Coding Help - Replies (1)

Hi,

having a little difficulty getting xticks to work, but I can't find syntax for what I am doing. As it happens, I think the syntax is accepted b..... More

Print this item

  py2exe - or py2android
Posted by: Skaperen - Oct-06-2016, 05:50 AM - Forum: General Coding Help - Replies (1)

in tutorials was recently published an article for py2exe.

i'd like to target ..... More

Print this item

  now()
Posted by: Skaperen - Oct-06-2016, 05:44 AM - Forum: General Coding Help - Replies (7)

is there a way to do this


from datetime import datetime as dt
now=dt.now
in one statement?

i tried these and they did n..... More

Print this item

  Creating a state machine
Posted by: metulburr - Oct-06-2016, 04:55 AM - Forum: Game Tutorials - Replies (4)

[color=#000000][size=medium][font=Times New Roman]A state (or screen, scene, etc.) machine, is a way to handle different scenes of the game, and flip ..... More

Print this item

  Building an exe with Py2exe
Posted by: metulburr - Oct-06-2016, 04:52 AM - Forum: Python Installation and Execution - No Replies

[color=#000000][size=medium][font=Times New Roman]There are numerous programs to aid in building an exe for Windows for your program... ..... More

Print this item

  BeautifulSoup - Table
Posted by: tkj80 - Oct-06-2016, 02:10 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi,

I ran the following code and got the error message: "IndexError: list index out of range"

[python]import csv
from urllib.request import url..... More

Print this item

  [split] Purpose of school/homework
Posted by: Johno - Oct-06-2016, 02:04 AM - Forum: Bar - Replies (15)

This might be a little off topic, but do many professionals recommend students consider dropping out?  I mean, the homework section was probably well-..... More

Print this item

  With Python I cannot calculate an AWS signature for Rest APIs
Posted by: Johno - Oct-06-2016, 01:56 AM - Forum: General Coding Help - Replies (4)

I have never been able to get Rest APIs to completely work with AWS. The error messages I have seen have been about the time not being correct or the ..... More

Print this item

  Assignment
Posted by: tinabina22 - Oct-06-2016, 12:58 AM - Forum: Homework - Replies (8)

This is an assignment that is due next week and I'm stuck on the for i in range code at the bottom highlighted with purple font.  I have included the ..... More

Print this item

  python3.x installation
Posted by: metulburr - Oct-05-2016, 11:38 PM - Forum: Game Tutorials - Replies (1)

EDIT:
This is quite outdated now. Try reading here

When first startin..... More

Print this item

  Functions
Posted by: metulburr - Oct-05-2016, 10:08 PM - Forum: Fundamentals - No Replies

Why use functions?

  • They maximize code reuse and minimize redunancy
    • Package logic when using in more than one place ..... More

Print this item

  Web scraping with Scrapy
Posted by: metulburr - Oct-05-2016, 10:03 PM - Forum: Web Scraping - No Replies

Originally posted by setrofim....
please do not PM me. 


Introduction

..... More

Print this item

  Creating C extensions
Posted by: metulburr - Oct-05-2016, 09:57 PM - Forum: Python Installation and Execution - Replies (3)

Originally posted by Casevh...
If You want to repost this, ill delete it
@[casevh]

This is part 1 of several short tutorials on creating C extens..... More

Print this item

  Run Python CGI from Apache
Posted by: metulburr - Oct-05-2016, 09:49 PM - Forum: Web Tutorials - Replies (1)

Depending on the Linux distro and even the version the name and path of the apache config file will be different. You did not specify which distro you..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  What is the penalty for c... 7 minutes ago cruisesfares cruisesfares News and Disc...
  Looking for constructive ... 3 hours ago decuser MarkHenry News and Disc...
  We open-sourced kubesdk —... Yesterday, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files Yesterday, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
  [split] Screen recording ... 12-18, 13:13 buran Biks Bar
  I'm assuming you're askin... 12-18, 01:54 DavidSah DavidSah General Codin...
  Division 12-17, 15:47 Mallard Mallard General Codin...
  How to Randomly Print a Q... 12-16, 17:29 BillKochman zodazy General Codin...
  My regex function is not ... 12-15, 06:42 Moltar1997 SledgeNE General Codin...
  Iterator and/or generator... 12-15, 06:35 mogplus8 SledgeNE General Codin...
Most views
  The best Prog... 580215
  Tutorial Requ... 517683
  Web Scraping ... 442695
  Newbie with P... 386883
  New Users Int... 384841
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+ 12117
buran 8197
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
cruisesfares Today
transiqueadvisors Today
MarkHenry Today
snowman Today
beslanpuzl Yesterday

User Panel Messages

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