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,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,831

Full Statistics

Online Users
There are currently 58 online users.
» 1 Member(s) | 52 Guest(s)
Google, Applebot, Bing, AOL, CaptainNewb

Latest Threads
New to python and coding
Forum: Homework
Last Post: jefsummers
4 hours ago
» Replies: 6
» Views: 170
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
5 hours ago
» Replies: 0
» Views: 36
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 6
» Views: 100
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 345
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 106
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 235
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 371
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 141
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,641
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 243

 
  Reading a file
Posted by: raikone14 - Sep-24-2017, 04:58 PM - Forum: General Coding Help - Replies (4)

I trying connect into different switches using a python script, but I cant read properly the file that contains the ip address of the switches.If some..... More

Print this item

  ping and pong run both well
Posted by: sylas - Sep-24-2017, 01:18 PM - Forum: General Coding Help - Replies (1)

To Metalburr. This time I toke the files directly on pong., for my project ping, not files from Git-Hub.

Print this item

  I need help creating tables with Sqlite3
Posted by: Rius2 - Sep-24-2017, 12:32 PM - Forum: General Coding Help - Replies (3)

I wish to make a function that creates tables from a tablename list i provide

[python]import sqlite3


def creat_tables():
conn = sqlite3.c..... More

Print this item

  how to use the upper()
Posted by: King - Sep-24-2017, 12:19 PM - Forum: Homework - Replies (5)

How do i write a program, that asks the user for two strings, and proceeds to replace all occurrences of the
second string in the first string with t..... More

Print this item

  [pyGame] My First Test, Error Fount !
Posted by: JamieVanCadsand - Sep-24-2017, 12:15 PM - Forum: Game Development - Replies (3)

Hey Programmers...

I try to set up an screen with pygame, but i get an error. I want to learn pyGame and pyOpenGL
to write my own software, but th..... More

Print this item

  "Call the subroutine in order to check..."
Posted by: misa_san - Sep-24-2017, 09:10 AM - Forum: Homework - Replies (1)

[b]The following subroutine returns a value to the main program
SUBROUTINE checkval (value, low, high)
IF value < low THEN
RETURN “Low”
..... More

Print this item

  [split] Coin Flip Program
Posted by: Crackity - Sep-24-2017, 09:09 AM - Forum: General Coding Help - Replies (5)

Hello all,
I don't know if I should be adding my issue to this thread or starting a new one. I too am having trouble with my coin flip/toss game but ..... More

Print this item

  Is there a better way to write this case scenario?
Posted by: anakaine - Sep-24-2017, 08:50 AM - Forum: General Coding Help - Replies (15)

Relatively new programmer here, familiar with the 'basic' languages such as VB, but not so crash hot with Python. [b]Is there a better way to write th..... More

Print this item

  Can' t open my py file
Posted by: zafraj1 - Sep-23-2017, 07:12 PM - Forum: News and Discussions - Replies (5)

Hello everyone. I just set up python 3.3 and i opened a new file to writi in it but at first i tried to save it before write anything. I noticed that ..... More

Print this item

  Prime Numbers
Posted by: OmarSinno - Sep-23-2017, 04:51 PM - Forum: General Coding Help - Replies (1)

[python]import math
prime_count = 0
#This Code checks if the n integer is prime!
def is_prime(n):
if n % 2 == 0 and n > 2: # 2 is the only eve..... More

Print this item

  While loop issue
Posted by: CWatters - Sep-23-2017, 04:14 PM - Forum: General Coding Help - Replies (4)

I'm trying to understand why this code works..
[code]
count = 0
while (count < 9):
print ('The count is:', count)
count = count + 1

prin..... More

Print this item

  [pyOpenGL] Help Needed to Install it !
Posted by: JamieVanCadsand - Sep-23-2017, 03:18 PM - Forum: News and Discussions - Replies (8)

Hey Programmers...

I get installed pyGame. But now i want to install pyOpenGL on Windows 7 and 10.
But i need help with it.

I get python 3.6.2,..... More

Print this item

  Names for loop, Error Found !
Posted by: JamieVanCadsand - Sep-23-2017, 02:30 PM - Forum: General Coding Help - Replies (2)

Hey Programmers...

I try to create an names for loop (= diffrent strings in an list). But it don't work perfectly.
This is my code. I use python 3..... More

Print this item

  what is " ''' "?
Posted by: yuisky - Sep-23-2017, 01:18 PM - Forum: General Coding Help - Replies (3)

I started studying Python with book.
So, I followed what book says.
Book said, print sayings using ".
so I typed
print('Oscar Wild said, "Most of the ..... More

Print this item

  How can I access this variable from a def?
Posted by: student3m - Sep-23-2017, 10:59 AM - Forum: General Coding Help - Replies (1)

Hey, I'm new here and pretty new to programming as well.

I'm trying to make a simple text entry box that prints the text upon pressing return. Howe..... More

Print this item

  Program regarding Password check need assistance
Posted by: Remediez - Sep-23-2017, 07:19 AM - Forum: General Coding Help - Replies (1)

import re
import random
points = 0
print("""
Point System:
~1 Uppercase Letter = 5 Points
~1 Lowercase Letter = 5 Points
~1 From 0-9 = 5 Points..... More

Print this item

  Why are these numbers broken into their digits?
Posted by: Pedroski55 - Sep-23-2017, 07:00 AM - Forum: General Coding Help - Replies (6)

I am using Python 3.5.2 and its csv module. I want to write to a csv file. To begin with, I just create a list:

[python] # open a file
outputFile = o..... More

Print this item

  Speech Recognition
Posted by: rajeev1729 - Sep-23-2017, 05:16 AM - Forum: General Coding Help - Replies (7)

i want to implement speech recognition system but i don't know how to extract voice feature in python. please help.

Print this item

  Scraping results won't save in csv file
Posted by: origomedia - Sep-23-2017, 12:00 AM - Forum: General Coding Help - Replies (2)

Hi Everyone, I am very new to this but managed to last night get a succesful scrape using the code below. However, I must have an error somewhere in t..... More

Print this item

  List exercices
Posted by: Matthew892109 - Sep-22-2017, 11:21 PM - Forum: Homework - Replies (3)

Hello everybody! I am a beginner coder and I am looking for either a link or a pdf for exercises for python 2.7. Can anyone help me?

Print this item

  OnExit closes windows, but dosen't exit application
Posted by: Larz60+ - Sep-22-2017, 10:17 PM - Forum: GUI - Replies (3)

In the following code when I click the 'X' on main window,
the windows are destroys, but the application keeps running.
Thought I knew how to do thi..... More

Print this item

  ShoeBot Problems
Posted by: MGallo - Sep-22-2017, 10:13 PM - Forum: General Coding Help - Replies (11)

Hello, I am currently creating a shoe bot, and I'm having trouble adding more inputs for other fields. I already have name and shoesize working (Thank..... More

Print this item

  [SYS + OS] Script not Imported, Error Found !
Posted by: JamieVanCadsand - Sep-22-2017, 05:54 PM - Forum: General Coding Help - Replies (2)

Hey Python Programmers...

I Try to train my self in working with SYS and OS. In this case... create an simple
program they get more python scripts..... More

Print this item

  Fixing - MIME type ("text/x-python") that is not "text/event-stream"
Posted by: mostek_6502 - Sep-22-2017, 03:37 PM - Forum: Web Scraping & Web Development - Replies (4)

Dear Python Experts:

I am very new to web development, although I've been programming on some level for a few decades.
I started with the Python f..... More

Print this item

  search and replace first amount of strings instances with one thing and a second amou
Posted by: chickflick91 - Sep-22-2017, 02:15 PM - Forum: General Coding Help - Replies (7)

i have a code in python to search and replace what i need though is to replace the first say 10 instances of the number 1 with 2 and the second 10 ins..... More

Print this item

  Writing file
Posted by: kvivek266 - Sep-22-2017, 01:58 PM - Forum: General Coding Help - Replies (4)

hello everyone,
I am beginner and I am trying to write file but I am getting this type of error.
Traceback (most recent call last):
File "<pyshell#..... More

Print this item

  Python - Make Json objects to work concurrently through Threads?
Posted by: WeInThis - Sep-22-2017, 11:31 AM - Forum: General Coding Help - No Replies

What I was planning to do is to have a multiple JSON objects, for example:

[python] {
"Profiles": {
"profile_0": {
..... More

Print this item

  Failed to recieve scapy udp packet
Posted by: SkyAmryBoi - Sep-22-2017, 10:29 AM - Forum: Networking - Replies (1)

Hi,
I used scapy and wrote a udp test application to send udp packet between computer A to computer B. The reciever at computer B is able to recie..... More

Print this item

  BeautifulSoup and pagination.
Posted by: Mike Ru - Sep-22-2017, 08:43 AM - Forum: Web Scraping & Web Development - Replies (1)

I have a script that download MP3  on the site. I don't know how to pass other page to download other music after downloading of all music on the page..... More

Print this item

  I'm afraid it is a question of copyright
Posted by: sylas - Sep-22-2017, 06:52 AM - Forum: General Coding Help - Replies (18)

To Metulburr. Hi, On the terminal I tried first : pong$ python game.py....It runs well. Second I tried (always on the terminal): ping$ python game.py...... More

Print this item

  Python automation GET/POST/REQUEST
Posted by: Raki - Sep-22-2017, 04:14 AM - Forum: General Coding Help - Replies (1)

Hello All,

I have a Python web based project(UI is designed with Java and it is parsed to use by python) which can load a project as JSON, I can ru..... More

Print this item

  Interaction between different programming languages
Posted by: Krookroo - Sep-22-2017, 01:30 AM - Forum: News and Discussions - Replies (3)

Hello,

First, let me apologize for I don't have any code to show. This post is about getting pointers as to where to get the information I need.
..... More

Print this item

  list and tuple problems
Posted by: jascolby - Sep-21-2017, 11:16 PM - Forum: General Coding Help - Replies (1)

I am on my third day of trying to figure this out. Wall Not sure what else to do. Can someone point me in the right direction please?


This i..... More

Print this item

  Variables as labels vs fixed storage location
Posted by: cnoblejr - Sep-21-2017, 07:08 PM - Forum: General Coding Help - Replies (4)

Is this a nit? For example.

>>> y = 5
>>> id(y)
4297636480
>>> y = 7
>>> id(y)
4297636544
>>> x = 5
>>> id(x)
4297636480
>>>

Clearly..... More

Print this item

  Python IDLE crash on start on Mac
Posted by: Avery52 - Sep-21-2017, 02:33 PM - Forum: General Coding Help - Replies (1)

I can run idle3 from terminal and open a file from it perfectly.

However, if i try to open a .py file directly with it (via "Open with), it crash..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 4 hours ago lary_p jefsummers Homework
  Please guide me to comple... 5 hours ago pbkurd pbkurd General Codin...
  [solved] re.split issue 6 hours ago paul18fr deanhystad General Codin...
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [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...
Most views
  The best Prog... 578934
  Tutorial Requ... 510227
  Web Scraping ... 441958
  Newbie with P... 385969
  New Users Int... 376842
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday
Jessicaadams Yesterday

User Panel Messages

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