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,248
» Latest member: kai_cow2710
» Forum threads: 38,779
» Forum posts: 175,815

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 28 Guest(s)
Bing, Facebook, Google, buran

Latest Threads
New to python and coding
Forum: Homework
Last Post: mamta25
3 hours ago
» Replies: 2
» Views: 77
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
3 hours ago
» Replies: 4
» Views: 134
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 289
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 261
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 99
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,613
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 200
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 183
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,087
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,419

 
  Clean up Code
Posted by: liamwemyss - Jun-07-2017, 07:24 PM - Forum: General Coding Help - Replies (1)

Just looking for suggestions on how to clean up my code.

This is my first program ever in python (aside from 'hello world' and helping my daughter ..... More

Print this item

  Can 'len(s)' be used to just count letters?
Posted by: Bryan_Buster - Jun-07-2017, 07:22 PM - Forum: General Coding Help - Replies (3)

Good day people.
I recently decided to try out Python and I was wondering if you can use 'len(s)' to only count letters.
For example when you type t..... More

Print this item

  No links are getting added to the parsed_links variable
Posted by: r3d_f0x - Jun-07-2017, 06:01 PM - Forum: Web Scraping & Web Development - Replies (6)

I am working on this web crawler and I am using the parsed_links variable to store links that have been found in crawled pages.  When I print the vari..... More

Print this item

  LIB install failure
Posted by: Able98 - Jun-07-2017, 05:53 PM - Forum: General Coding Help - Replies (2)

This is failing for me. Please Advise.

[code]
sudo apt install git
sudo git clone https://github.com/ethereum/pyethereum
cd pyethereum
sudo pyt..... More

Print this item

  Beginner Assistance
Posted by: liamwemyss - Jun-07-2017, 05:51 PM - Forum: General Coding Help - Replies (7)

Hello,

Personal background:
    My first forum post, teaching myself programming, and teaching myself python so please be patient with me.

Prog..... More

Print this item

  BeautifulSoup Parsing Error
Posted by: slinkplink - Jun-07-2017, 05:12 PM - Forum: Web Scraping & Web Development - Replies (6)

Hi all,

Novice here, so go easy on me. I'm in the process of writing a web scraping script to automate a public records database search. For some re..... More

Print this item

  PostgreSQL- import package
Posted by: elhetch - Jun-07-2017, 12:32 PM - Forum: General Coding Help - Replies (2)

i am trying to use postgreSQL package , i had tried the following:

python -m pip install -U pip setuptools
[python]python get-pip.p..... More

Print this item

  While loop help
Posted by: Element346 - Jun-07-2017, 11:12 AM - Forum: Homework - Replies (7)

Hello, I am very new to python and I feel very stuck. Here is my homework problem followed by what I have tried:

##### Step 3:
##### Create loop t..... More

Print this item

  downloading pygame wheel or MSI type
Posted by: DAS - Jun-07-2017, 09:15 AM - Forum: Game Development - Replies (3)

I would like to download pygame - I have python 3.4 installed 32bit - but the version of pygame is asking whether I want type wheel or MSI - can you..... More

Print this item

  Parse XML line by line
Posted by: rakhmadiev - Jun-06-2017, 09:20 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi, I want to retrieve the information from XML line that looks like this:

<pdce:ExploratoryDrilling contextRef="FD2016Q4YTD" decimals="-3" id="Fa..... More

Print this item

  Should I be able to do this?
Posted by: Larz60+ - Jun-06-2017, 09:06 PM - Forum: General Coding Help - Replies (3)

I think I already know the answer to my question, but wanted a different perspective so
that I can verify that I should not do what I'd love to be ab..... More

Print this item

  Different outputs in Python2 and Python3
Posted by: MikeHill - Jun-06-2017, 07:46 PM - Forum: General Coding Help - Replies (3)

Hi All,
I am new to coding
When I run the following code in python2 and python3 I get different outputs
Can someone please explain this phenomenon..... More

Print this item

  n00b needs help
Posted by: theturd - Jun-06-2017, 07:10 PM - Forum: General Coding Help - Replies (8)

hello guys\gals,
i'm sure this is simple but i'm a n00b and have spent a few hours trying to figure this out.  basically what i need is this;

read..... More

Print this item

  Square Root on calculator
Posted by: MP1234593 - Jun-06-2017, 06:43 PM - Forum: Homework - Replies (1)

Hi,
I need to create a calculator for my college course. Everything works apart from the square root function. I am a total beginner other than a few..... More

Print this item

  Help with script error
Posted by: mason28 - Jun-06-2017, 04:41 PM - Forum: General Coding Help - Replies (10)

Hi everyone,

I found the following code at (devnote.stokemaster.com/2009/07/simple-way-to-encrpt-and-decrypt-short.html).

When I put print stat..... More

Print this item

  Attempting to port XTea Encryption from C to Python
Posted by: sonic1015 - Jun-06-2017, 04:39 PM - Forum: General Coding Help - Replies (1)

I'm having trouble translating some C Code into Python. I have tried my best to simulate the nature of integer overflow from C, but have so far been u..... More

Print this item

  Trivia2 Loop problem?
Posted by: milll929 - Jun-06-2017, 02:08 PM - Forum: Homework - Replies (3)

So I'm getting the constant error of there being it reading the loop too many times and I was wondering how to fix that, I'm currently working in scho..... More

Print this item

  recursive action
Posted by: elhetch - Jun-06-2017, 01:01 PM - Forum: General Coding Help - Replies (6)

i dont understand how this code works, as per my understanding every time the def function will be called , why it returns a result.

[python]def ra..... More

Print this item

  linux books on humble bundle for next 8 days
Posted by: metulburr - Jun-06-2017, 12:51 PM - Forum: News and Discussions - No Replies

https://www.humblebundle.com/books/linux-book-bundle

Print this item

  Python and Pika stability issues
Posted by: tremmert - Jun-06-2017, 11:46 AM - Forum: General Coding Help - No Replies

I am using Python 2.7 and the Pika library to publish messages to a RabbitMQ server. The script below will read the last line of a text file every 30 ..... More

Print this item

  Tip calculator problem
Posted by: Dhaval - Jun-06-2017, 09:56 AM - Forum: General Coding Help - Replies (1)

Task Details : You've finished eating at a restaurant, and received this bill:

   Cost of meal: $44.50
   Restaurant tax: 6.75%
   Tip: 15..... More

Print this item

  GUI on Raspberry pi 3 model
Posted by: HjFap - Jun-06-2017, 09:05 AM - Forum: GUI - Replies (1)

Hello, I need some help!
I have a raspberry pi 3 model, with the raspbian OS installed, and i'm trying to make GUI menu with some buttons, and when i..... More

Print this item

  loop doesn't advance-py3 text game
Posted by: foxtreat - Jun-06-2017, 05:31 AM - Forum: General Coding Help - Replies (2)

Making a simple fighting text based game where you can fight turn based and gain xp with which you can buy more hp.armour and etc.however it needs to ..... More

Print this item

  just a trial. Please wait 5 minutes before deleting this thread
Posted by: sylas - Jun-06-2017, 05:27 AM - Forum: General Coding Help - Replies (2)

my question here:just a trial

[python]#file1.py
print("HANDLING LISTS")
L = [1.2, 5.6, 7.8]
L[1]= 8.9
for x in L:print(x, end=' ')
print()  # ..... More

Print this item

  Syntax Error
Posted by: bsullivan1983 - Jun-06-2017, 02:46 AM - Forum: Homework - Replies (9)

Hey all. Just started Fundamentals of Programming 1 at my local community college. I'm on my first homework assignment which is as follows:

Land Ca..... More

Print this item

  how can I find the disk space on a remote hosts ?
Posted by: timfox123 - Jun-06-2017, 01:18 AM - Forum: Networking - Replies (1)

I can find the disk space for the host I am on using this script

#!/usr/bin/env python3
import shutil
total, used, free = shutil.disk_usage(__fi..... More

Print this item

  Pygame*import pygame ImportError: No module named pygame
Posted by: CASPERHANISCH - Jun-05-2017, 07:55 PM - Forum: General Coding Help - Replies (1)

my question here: So I'm new, and I wanted to make my first game following a tutorial, I've downloaded pygame and everything as instructed, but now wh..... More

Print this item

  Logic error when comparing randomly generated integers
Posted by: SadoDeomeoon - Jun-05-2017, 12:24 PM - Forum: General Coding Help - Replies (5)

For a little art prompt generator I'm making, I needed the program to generate random integers corresponding to colours, themes and subjects. For colo..... More

Print this item

  Math problem python
Posted by: Dhaval - Jun-05-2017, 08:54 AM - Forum: General Coding Help - Replies (1)

[python]# Set count_to equal to the sum of two big numbers
addition =  72 + 23
substration = 108 - 204
multiplaction = 108 * 0.5
division = 108 / ..... More

Print this item

  Troubles with classes, taken from a book
Posted by: sylas - Jun-05-2017, 05:47 AM - Forum: General Coding Help - Replies (2)

my question here:Hi all.The FirstClass alone works well. But when I add the SecondClass pyCharm gives me an error Here is the output,at first:[output]..... More

Print this item

  ascii() (repr() in py2)
Posted by: Skaperen - Jun-05-2017, 04:00 AM - Forum: General Coding Help - Replies (1)

the ascii() function in py3 (repr() in py2) converts only 3 ASCII control characters to mnemonic escape sequenes (e.g. '\t' and '\n' and '\r')  Python..... More

Print this item

  octal instead of hex
Posted by: Skaperen - Jun-05-2017, 03:25 AM - Forum: General Coding Help - Replies (4)

i can convert binary characters to a literal text form with ascii() (repr() in py2) but it converts most characters to a hexadecimal escape form like ..... More

Print this item

  Stream Cipher Encryption and Decryption
Posted by: Iskuss - Jun-05-2017, 03:15 AM - Forum: Code sharing - Replies (3)

Encryption (Python 2.7)
[python]
def main():

   message = raw_input("Enter a message without spaces or punctuation. ")

   message = list(messa..... More

Print this item

  Simple averaging program
Posted by: Iskuss - Jun-05-2017, 03:07 AM - Forum: Code sharing - Replies (5)

Probably the most convoluted way to find the average of a set of numbers in Python but here it is.

[python]
amount = int(input("Enter number of it..... More

Print this item

  requests digest auth with netrc
Posted by: fstefanov - Jun-05-2017, 12:43 AM - Forum: Networking - Replies (1)

Hello,
According to the documentation for requests:

netrc Authentication

If no authentication method is given with the auth argument, Requests ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 3 hours ago lary_p mamta25 Homework
  Help with Serial.write in... 3 hours ago racingsubby racingsubby General Codin...
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578833
  Tutorial Requ... 509841
  Web Scraping ... 441915
  Newbie with P... 385915
  New Users Int... 376087
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
kai_cow2710 Today
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10

User Panel Messages

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