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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 35 Guest(s)
Bing, Google, AOL, Mojeek

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 89
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 58
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 59
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 314
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 71
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 262
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 141
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 237
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 421

 
  something going wrong.. code is not working
Posted by: anna - Dec-28-2017, 05:34 AM - Forum: General Coding Help - Replies (9)

[python]#!/usr/bin/python
from easysnmp import Session
# load easysnmp module
community ='public'
#Community for the device
oid ='SNMPv2-MIB::sys..... More

Print this item

  Simple Function Problem, please help
Posted by: ShadowWarrior17 - Dec-28-2017, 02:17 AM - Forum: General Coding Help - Replies (16)

[python]
def columncheck©:
x=5
pos=False
while pos != True:
if dboard[x][(4*c)-1]== " ":
pos=True
eli..... More

Print this item

  Completly lost about to fail my class!
Posted by: crakacheezy - Dec-27-2017, 05:31 PM - Forum: Homework - Replies (7)

Ok, let first start I am currently overseas in Turkey. So, I am taking my courses online. I am doing introduction to coding. When is came to the basic..... More

Print this item

  I have a question from a YouTube video I saw:
Posted by: nelsonkane - Dec-27-2017, 05:11 PM - Forum: General Coding Help - Replies (9)

At the 2:54 mark of this video below, the teacher suddenly goes from this while.py program to a Python 3.3.3 Shell,
which then prints out a loop tha..... More

Print this item

  Someone tell me where to go...
Posted by: Emerogork - Dec-27-2017, 05:05 PM - Forum: Bar - Replies (2)

I should have been more specific in the title: Include "Python To App".

I am new to Python but not new to programming and just finished a 5 hour tuto..... More

Print this item

  1 I cant read many stocks(list) with pandas-datareader from yahoo
Posted by: Davidii111 - Dec-27-2017, 01:36 PM - Forum: Data Science - Replies (1)

[python]
import pandas_datareader as pdr
import datetime
import pandas as pd

largecap = pd.read_excel('largecap.xlsx')
antalrader = len(largec..... More

Print this item

  Need help developing a game with Raspberry Pi 3
Posted by: sl8 - Dec-27-2017, 12:12 PM - Forum: Homework - Replies (4)

So me and my buddy want to create a game using python games as a final project we have in our class. We basically need to create a game and then use t..... More

Print this item

  how to deal with easysnmp timeout
Posted by: anna - Dec-27-2017, 12:10 PM - Forum: Networking - No Replies

below small script check model of device, its taking ip from file. My issue is ... how to deal with snmp timeout, script exits on snmp time out.

pl..... More

Print this item

  Python nuget package for visual studio not getting installed
Posted by: kuldeep26 - Dec-27-2017, 08:14 AM - Forum: General Coding Help - No Replies

I am trying to install python (Installs 64-bit Python for use in build scenarios.) via nuget package manager in my Visual Studio Enterprise 2017. I am..... More

Print this item

  json load problem
Posted by: mepyyeti - Dec-27-2017, 06:10 AM - Forum: General Coding Help - Replies (6)

So I have the attached code, which works, MOSTLY

The source codes are attached (1 class file, and main file) to preserve spacing, etc.  The ..... More


Attached Files

.py   userdict0.py (Size: 544 bytes / Downloads: 747)
.py   userdict0cl.py (Size: 486 bytes / Downloads: 785)
Print this item

  python- read specific words from log file
Posted by: anna - Dec-27-2017, 05:59 AM - Forum: General Coding Help - Replies (18)

Hi There,

I have below AAA log file, i would like to read and store underlined strings in another file. Please help for script

26 Dec 2017 00:00..... More

Print this item

  complete beginner - add upload to a webpage in a script
Posted by: Nnamdug - Dec-27-2017, 05:18 AM - Forum: Networking - No Replies

Hi all,

I completely new a python and scripting, so i hope someone in this forum can help me. This is probably going to a really open question, but..... More

Print this item

  Variable in range of float
Posted by: dogginky - Dec-27-2017, 04:28 AM - Forum: General Coding Help - Replies (3)

Noob here just a few weeks in, So after all the reading and videos I decided it was time to do more writing.
I got side tracked and somehow ended up t..... More

Print this item

  Print Function
Posted by: Jaks - Dec-27-2017, 03:40 AM - Forum: General Coding Help - Replies (3)

Hi,
i'm executing below 2 lines in Pycharm

print("+", sep=" ", end=" ")
print("-", sep=" ", end=" ")

I got the output like this

+ -

My q..... More

Print this item

  List Comprehension
Posted by: zowhair - Dec-27-2017, 03:16 AM - Forum: General Coding Help - Replies (2)

matrix =  [  [ 1,2,3,4], [5,6,7,8],[9,10,11,12]]
[[row[i] for row in matrix] for i in range(4) ]
Will anyone explain these st..... More

Print this item

  Is it safe to use outside a class created inside the function?
Posted by: oneroslavsky - Dec-27-2017, 01:03 AM - Forum: General Coding Help - Replies (2)

Let you pass the list of classes as an argument to your function. Let also, inside this function you create a class and append it to the list in quest..... More

Print this item

  Parsing serial data "Attribute Error"
Posted by: Zeberoff - Dec-26-2017, 11:34 PM - Forum: General Coding Help - Replies (2)

I am working on Python 2.7.9 and attempting to parse the serial data. The error I get is [color=#ff3333]AttributeError: 'Serial' object has not attrib..... More

Print this item

  How would you test this module?
Posted by: RickyWilson - Dec-26-2017, 04:49 PM - Forum: General Coding Help - Replies (2)

How can I write unit tests for this module. I know very little about writing tests.

[python]
#-*-coding:utf8;-*-
#qpy:3
#qpy:console



SING..... More

Print this item

  Looking for electronic music python coder
Posted by: ZipSnipe - Dec-26-2017, 04:45 PM - Forum: Jobs - Replies (1)

So I am making a sampler /looper using the Raspberry py 3, python2.7,Adafruit 4x4 trellis,touch screen. I am at a point in coding where I need someone..... More

Print this item

  Combing codes to play wav file
Posted by: ZipSnipe - Dec-26-2017, 04:19 PM - Forum: General Coding Help - No Replies

Hello all and Happy Holidays

I have embarked on a project that has enticed me into coding for the first time in my life and now I am hooked. Please..... More

Print this item

  DB_ methods to calculate/manipulate data
Posted by: issac_n - Dec-26-2017, 07:03 AM - Forum: General Coding Help - No Replies

currently looking for a better way to calculate&manipulating data issue here where input files are excel.
what are the best options for me with condi..... More

Print this item

  Create a Pie Chart using matplotlib from SQL query
Posted by: jwbrassell - Dec-26-2017, 03:24 AM - Forum: Code sharing - No Replies

I wanted to be able to do the following:

  • Define a list to feed into an SQL query
  • Save the results of the Query into a list
  • Use the..... More

Print this item

  i must be missing something obvious
Posted by: Skaperen - Dec-26-2017, 02:23 AM - Forum: General Coding Help - Replies (2)

i ran into a problem with some big code and minimized it and the problem remained.  but should this be obvious?  did i miss something that should be o..... More

Print this item

  print twice?????
Posted by: raulseangarciaroberts - Dec-25-2017, 03:59 PM - Forum: General Coding Help - Replies (3)

def print_twice(bruce):
print ("bruce")
print ("bruce")

print_twice("spam")
bruce
bruce
print_twice(17)
bruce
bruce




The..... More

Print this item

  A basic Rock-paper-scissors game by me...
Posted by: Unlimiter - Dec-25-2017, 03:41 PM - Forum: Code sharing - No Replies

[python]"""A basic program/game that simulates Rock-Paper-Scissors with text"""

# I need random library to randomise the bot's actions.
import ran..... More

Print this item

  Loop for comparing 2 following datablocks in long Array
Posted by: Sw1p3 - Dec-25-2017, 03:33 PM - Forum: General Coding Help - Replies (2)

Hallo everybody,

i search for an solution for following problem:

x=[1,2,3,4,5]
block_length=2
save=[]

for i in range (len(x)):

If np..... More

Print this item

  Soap json program
Posted by: rahul208in - Dec-25-2017, 11:09 AM - Forum: General Coding Help - Replies (5)

Any one has python program to trigger soap and json call based on parameter. SSL n non SSL CALLS. pls share. Thanks

Print this item

  script wanted: clock for text mode screen
Posted by: Skaperen - Dec-25-2017, 06:51 AM - Forum: Bar - Replies (2)

i would like to see someone write a script to draw a big digital clock on the full text mode screen, updated as fast as it can, but not ..... More

Print this item

  Cool products from China
Posted by: DeaD_EyE - Dec-25-2017, 04:13 AM - Forum: Bar - Replies (5)

I was seeking for a Micropython developer board in China. I found following:

http://www.micropython.net.cn

I'm very interested in this board: https:..... More

Print this item

  Moving an object in a circular path
Posted by: pi314159geek - Dec-25-2017, 02:50 AM - Forum: Game Development - Replies (1)

I want one circle to orbit another along a pre-drawn circular path of radius 300. I know others have asked the same question, but all of those answer..... More

Print this item

  White Space Help
Posted by: JayMan - Dec-25-2017, 02:39 AM - Forum: General Coding Help - Replies (9)

Hello,

I'm not a programmer and I thought maybe you all could help with this. I am trying to get this script to allow white spaces on the arugument..... More

Print this item

  oop breaks
Posted by: mepyyeti - Dec-25-2017, 01:15 AM - Forum: General Coding Help - Replies (7)

I'm having difficulty grasping the idea behind oop. I'm at a stage where I can write working programs but when I separate states and activities into ..... More

Print this item

  Install Python3 & PIP3 & Django on MAC OSX
Posted by: topjaba - Dec-24-2017, 07:09 PM - Forum: News and Discussions - Replies (1)

Hello,

I have encountered one setback after another trying to install the trio of Python,PIP and Django on Mac OSX virtual environment.

The root cau..... More

Print this item

  indentation loss
Posted by: metulburr - Dec-24-2017, 05:47 PM - Forum: Board - Replies (52)

1) pasted in source mode (Which should be default when you open an editor)
[python]
def list_count_4(nums):
  count = 0  
  for num in nums:
   ..... More

Print this item

  Syntax Error in Program
Posted by: bijay1983 - Dec-24-2017, 05:31 PM - Forum: General Coding Help - Replies (2)

Hi,

I have installed python 3.6.0 on my laptop and using IDLE to write below program
but i am getting syntax error.

Can you suggest please >
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579002
  Tutorial Requ... 510753
  Web Scraping ... 442013
  Newbie with P... 386050
  New Users Int... 377361
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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