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,403
» Latest member: asonpitt1039
» Forum threads: 38,827
» Forum posts: 176,040

Full Statistics

Online Users
There are currently 28 online users.
» 1 Member(s) | 24 Guest(s)
Google, AOL, Bing, coder19

Latest Threads
German Relative Clauses P...
Forum: General Coding Help
Last Post: asonpitt1039
40 minutes ago
» Replies: 0
» Views: 15
LhanePulse
Forum: General Coding Help
Last Post: Stephenchers
3 hours ago
» Replies: 0
» Views: 25
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Yesterday, 12:38 PM
» Replies: 2
» Views: 190
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 12:32 PM
» Replies: 29
» Views: 15,754
Create dataframe from the...
Forum: Data Science
Last Post: JassicaElla60
Yesterday, 12:31 PM
» Replies: 8
» Views: 3,668
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 183
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 150
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,197
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 228
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,640

 
  Basic Coding Slays College Girl
Posted by: AnjyilLee - Sep-14-2017, 08:41 AM - Forum: Homework - Replies (5)

It is 4:30 in the morning. Been up since 8am yesterday and been running on 2 hours of sleep, coffee, and a Monster energy drink. I've seen that you gu..... More

Print this item

  Module import error
Posted by: CoolSchoolBoy - Sep-14-2017, 05:32 AM - Forum: General Coding Help - Replies (2)

Hello All. Trying to load a module into python 3, it keeps giving me error:
__
>>> import chaos
Traceback (most recent call last):
File "<pyshell#..... More

Print this item

  Number of cmds inside subprocess
Posted by: pannis - Sep-14-2017, 05:08 AM - Forum: General Coding Help - Replies (5)

Hi, I am trying to run more than 5 or 6 shell commands from my pyhton script.

Currently my psuedo code is below.

[python]
try:
_ = subpro..... More

Print this item

  IndexError?
Posted by: OmarSinno - Sep-14-2017, 04:59 AM - Forum: General Coding Help - Replies (2)

import sys
a= int(sys.argv[1])
b= int(sys.arv[2])
c= int(sys.argv[3])
inorder = a<b<c or a>b>c
print(inorder)
Anyone can help..... More

Print this item

  [newbie] question on what to put in () on target.write
Posted by: MattSS102 - Sep-14-2017, 03:33 AM - Forum: General Coding Help - Replies (5)

#I know how to put in line1 variable on line 25 (target.write(line1)), however when I try to put line2 in it I get an error. The error is "function ta..... More

Print this item

  Geany frustration how to deal with tabs and spaces and CR
Posted by: mlytle0 - Sep-14-2017, 02:14 AM - Forum: General Coding Help - Replies (2)

Not having a code problem (yet)
If I use 'enter' to create a new line, it places a carriage return in there, code doesn't run. Trying not to use tab..... More

Print this item

  ...
Posted by: 8bitbacon - Sep-14-2017, 12:35 AM - Forum: GUI - No Replies

.....

Print this item

  Need some help trying to get my Python mortgage amortization calculator to work prope
Posted by: IamSirAskAlot - Sep-13-2017, 11:26 PM - Forum: General Coding Help - Replies (4)

So, I will be starting a graduate program in Data Science in Spring 2018 and I am trying to get acquainted with Python before then, but I am having so..... More

Print this item

  stupidly easy hw that I need help with
Posted by: icantcodeforcrap - Sep-13-2017, 08:19 PM - Forum: Homework - Replies (5)

I have to do a stupid tip calculator hw assignment for my beginning coding class. It's literally only our second assignment, but I'm stuck. For some r..... More

Print this item

  I need serious help.
Posted by: forumer444 - Sep-13-2017, 08:10 PM - Forum: Homework - Replies (3)

So I'm more of an intermediate programmer in Java, but I've had to move to a new area in the middle of being in school and am now learning Python in m..... More

Print this item

  AttributeError: module 'sys' has no attribute 'maxint'
Posted by: rajeev1729 - Sep-13-2017, 05:28 PM - Forum: General Coding Help - Replies (4)

[python]import math; #For pow and sqrt
import sys;
from random import shuffle, uniform;

###_Pre-Processing_###
def ReadData(fileName):
#Rea..... More

Print this item

  my python is popping up the error FileNotFoundError: [WinError 3] ?
Posted by: srinivas135 - Sep-13-2017, 01:10 PM - Forum: General Coding Help - Replies (3)

import os
path="C:\\User\\Desktop\\sr.txt"
os.chdir(path)
retval=os.getcwd()
print("Directory changed successfully %s" %retval)
#can the members ..... More

Print this item

  windows defender slows python first time ran
Posted by: metulburr - Sep-13-2017, 10:19 AM - Forum: News and Discussions - Replies (3)

im going to link this discussion because i am curious of the fix to it.
https://www.reddit.com/r/pygame/comments..._pygame_ea..... More

Print this item

  proc communicate not exiting on python subprocess timeout
Posted by: leoonardoo - Sep-13-2017, 09:54 AM - Forum: General Coding Help - No Replies

Hello,


the script below (a python process is called, which calls a waitfor cmd with a timeout of 4 seconds) is supposed to end after 4 seconds. B..... More

Print this item

  sqlite3
Posted by: kingram - Sep-13-2017, 09:19 AM - Forum: General Coding Help - Replies (3)

I want to insert my data into my table using variables. For example i want to insert data into table using ( data = input ("") )
What should i do?
..... More

Print this item

  Socket & Endpoint
Posted by: syogun - Sep-13-2017, 07:59 AM - Forum: News and Discussions - Replies (10)

Hi, everyone. Here is the short version of my question: What is an endpoint instance?

First I want to understand Asynchronous Python, then I..... More

Print this item

  NameError: name 'maketrans' is not defined
Posted by: rajeev1729 - Sep-13-2017, 05:39 AM - Forum: General Coding Help - Replies (2)

[python]from string import maketrans

intab = "aeiou"
outtab = "12345"
trantab = maketrans(intab, outtab)

str = "this is string example....w..... More

Print this item

  openpyxl saving files issue
Posted by: Pedroski55 - Sep-13-2017, 04:57 AM - Forum: General Coding Help - Replies (1)

Is there anybody here who knows openpyxl well?

I wanted to make a little program to insert student photos next to their names. This is the first time..... More

Print this item

  A million requests per second
Posted by: Larz60+ - Sep-13-2017, 02:20 AM - Forum: News and Discussions - Replies (1)

Here's a very interesting python application:
A million requests per second:
https://medium.freecodecamp.org/search?q=Przeradowsk

Print this item

  JSON Decoder issue
Posted by: Cronax3 - Sep-13-2017, 12:25 AM - Forum: General Coding Help - Replies (2)

Hey community,
currently I am programming a programing which is using the python Bittrex-API wrapper.
I ran into a problem which I am not able to re..... More

Print this item

  VPython - Trying to make orbit simulation
Posted by: totalnoob - Sep-13-2017, 12:20 AM - Forum: General Coding Help - Replies (2)

This is the code I have tried with the aim of one sphere accelerating towards the other as it would by F=G*M*m/r^2.
This is one of the first things I..... More

Print this item

  IRC bot written in Python - join channel function
Posted by: syrius - Sep-12-2017, 08:12 PM - Forum: Networking - Replies (8)

I'm trying to add to my python IRC bot a function that when I type "join #channel-name" on IRC, the bot will join the channel.

Here's my code:

[..... More

Print this item

  Login into Instagram using python
Posted by: kingram - Sep-12-2017, 05:00 PM - Forum: Web Scraping & Web Development - Replies (1)

I want to make script that login into Instagram website only.
Is there any way???

Print this item

  About Machine Learning
Posted by: rajeev1729 - Sep-12-2017, 04:59 PM - Forum: Data Science - Replies (3)

help me Machine Learning with real world problem like How to make model,how train model,how to evaluate about accuracy. Any book, web resources or any..... More

Print this item

  Python 3.x Windows 7 registry file associations broken
Posted by: pixhellmann - Sep-12-2017, 04:52 PM - Forum: General Coding Help - Replies (2)

Hi,

I deleted some windows registry keys dealing with the python file associations.
I thought then reinstalling the python setup will fix it back ..... More

Print this item

  wxPython install on raspberry pi3 and python 3.6.2.
Posted by: djdan_23 - Sep-12-2017, 04:49 PM - Forum: GUI - Replies (3)

Hi! all.
I tried some ways from the net, to install wxPython on my pi3 stretch (9) with python 3.6.2 and pip 9.0.1 and smbus2-0.2.0. But so far....no..... More

Print this item

  Convert grib files to text files
Posted by: tuxman - Sep-12-2017, 04:36 PM - Forum: General Coding Help - Replies (6)

Hi,

I want to read many grib files from a folder, and then save as text files. The name of the text file will be same name as grib file.
My code..... More

Print this item

  ere iam getting the unicodec codescope error syntax error how can i resolve it?
Posted by: srinivas135 - Sep-12-2017, 03:13 PM - Forum: General Coding Help - Replies (4)

[python]import os
path="c:\users\personal\AppData\Local\Programs\Python\Python36\srinu.txt"
os.chdir(path)
retval=os.getcwd()
print("Directory cha..... More

Print this item

  Is there another way to solve this code but still using for loop?
Posted by: pratriciaexists - Sep-12-2017, 02:53 PM - Forum: Homework - Replies (1)

def first(s):
""" Determine if a string contains a lowercase or uppercase r
Test data:
input: 'garden'
output: 'r'
..... More

Print this item

  why not accuracy working
Posted by: rajeev1729 - Sep-12-2017, 02:10 PM - Forum: General Coding Help - Replies (1)

p[python]import math; #For pow and sqrt
from random import shuffle;


###_Read Data_###
def ReadData(fileName):
#Read the file, splitting by..... More

Print this item

  What is causing the syntax error?
Posted by: Mr_Keystrokes - Sep-12-2017, 01:06 PM - Forum: General Coding Help - Replies (5)

Just started using python a few seconds ago...
[python]
n = int(input("Enter a number: "))

if n % 2 == 0:
print (n, " is an ..... More

Print this item

  [difflib] read files with SequenceMatcher
Posted by: JamieVanCadsand - Sep-12-2017, 09:01 AM - Forum: General Coding Help - Replies (3)

Hey Python Programmers...

I try to write an script to read files with difflib writting an script like this:

[python]import difflib

file1 = op..... More

Print this item

  Button not defined, why?
Posted by: gb_johnny - Sep-12-2017, 07:31 AM - Forum: GUI - Replies (6)

Hi all,
A newbie to Python & Tkinter here, although have used VB6 & Bash scripts.
Included (hopefully) is my code for a simple sound organiser for u..... More

Print this item

  how to save python file to working directory
Posted by: rpdohm - Sep-12-2017, 12:05 AM - Forum: General Coding Help - Replies (3)

I am using Bash terminal and my working directory is /home/rpdohm. I am using IDLE to create my python script and when I save my python script (i.e. ..... More

Print this item

  Trade secret?
Posted by: RMcGovern - Sep-12-2017, 12:03 AM - Forum: News and Discussions - Replies (4)

I'm a middle aged guy who used to program in basic. I have some ambition to develop my own sports sim game so I started in player generation. Now i'..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  German Relative Clauses P... 40 minutes ago asonpitt1039 asonpitt1039 General Codin...
  LhanePulse 3 hours ago Stephenchers Stephenchers General Codin...
  a function to watch files Yesterday, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... Yesterday, 12:32 Pavel_47 OtiliaGen General Codin...
  Create dataframe from the... Yesterday, 12:31 Calab JassicaElla60 Data Science
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
Most views
  The best Prog... 580501
  Tutorial Requ... 520325
  Web Scraping ... 442811
  Newbie with P... 387031
  New Users Int... 386914
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 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
asonpitt1039 Today
Stephenchers Yesterday
JassicaElla60 Yesterday
bryanptrovz7447 Yesterday
oliviajuior7959 01-01

User Panel Messages

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