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,627
» Latest member: TheJeffah
» Forum threads: 38,637
» Forum posts: 175,063

Full Statistics

Online Users
There are currently 443 online users.
» 0 Member(s) | 439 Guest(s)
Bing, Google, Yandex, Baidu

Latest Threads
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
Yesterday, 01:32 PM
» Replies: 3
» Views: 372
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
Yesterday, 11:05 AM
» Replies: 4
» Views: 1,858
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
Yesterday, 07:29 AM
» Replies: 2
» Views: 2,782
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: barrelmarble
Yesterday, 07:25 AM
» Replies: 1
» Views: 1,867
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Jun-26-2025, 08:17 PM
» Replies: 2
» Views: 3,068
Unable to install pygame ...
Forum: Game Development
Last Post: Thatedge
Jun-26-2025, 08:09 AM
» Replies: 2
» Views: 2,086
can't use pyrepl: bad mag...
Forum: News and Discussions
Last Post: Plyth
Jun-26-2025, 05:53 AM
» Replies: 2
» Views: 245
Setting AST node lineno c...
Forum: General Coding Help
Last Post: voidtrance
Jun-24-2025, 02:10 PM
» Replies: 5
» Views: 506
[SOLVED] Let user search ...
Forum: GUI
Last Post: deanhystad
Jun-24-2025, 02:04 PM
» Replies: 3
» Views: 203
color names
Forum: General Coding Help
Last Post: DeaD_EyE
Jun-24-2025, 08:10 AM
» Replies: 9
» Views: 199,403

 
  Vending Machine Program: Problem with variables
Posted by: icabero0225 - Jun-08-2017, 04:40 AM - Forum: General Coding Help - Replies (2)

I'm trying to make a simple vending machine program. Running this program gives me this error:

[error]Traceback (most recent call last):
 File "C..... More

Print this item

  Adding text after temperature reading Tkinter
Posted by: list249 - Jun-08-2017, 01:14 AM - Forum: GUI - Replies (2)

Hello all, i haven't messed with python for a couple of years, so im very rusty. Im messing with a gui i started making for another project, now i nee..... More

Print this item

  pip unable to install because of missing ssl module
Posted by: metulburr - Jun-07-2017, 09:34 PM - Forum: Data Science - Replies (10)

im trying to install pandas on python3.6. It seems to work fine in python2.x.

[output]metulburr@ubuntu:~$ sudo pip3 install pandas
The directory ..... More

Print this item

  Why does this hang the system up
Posted by: Able98 - Jun-07-2017, 07:59 PM - Forum: General Coding Help - Replies (15)

Thiese two examples seem to hang up the system.

raise FoundException("""\n\nYour password is:\n%s""" % o)
there seems to be no def ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  List[] in Python needs so... Yesterday, 13:32 Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion Yesterday, 11:05 keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... Yesterday, 07:29 kralxs wallneradam General Codin...
  2D-Cube-Tic-Tac-Toe Yesterday, 07:25 freethrownucleus barrelmarble Game Developm...
  [PyQt] PyQT5 Thread crash... 06-26, 20:17 Suresh Axel_Erfurt GUI
  Unable to install pygame ... 06-26, 08:09 garthE Thatedge Game Developm...
  can't use pyrepl: bad mag... 06-26, 05:53 eliastw85 Plyth News and Disc...
  Setting AST node lineno c... 06-24, 14:10 voidtrance voidtrance General Codin...
  [WxPython] [SOLVED] Let u... 06-24, 14:04 Winfried deanhystad GUI
  color names 06-24, 08:10 jimrinaldo DeaD_EyE General Codin...
  Python Install Mager Help 06-24, 04:43 bowens1983 DeaD_EyE News and Disc...
Most views
  The best Prog... 572353
  Tutorial Requ... 485035
  Web Scraping ... 436890
  Newbie with P... 379719
  Thread remain... 351240
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7340
deanhystad 6840
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
TheJeffah Yesterday
ChauHaiCim9904 Yesterday
barrelmarble Yesterday
wallneradam Yesterday
spokedge Yesterday

User Panel Messages

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