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,424
» Latest member: tomtyiu
» Forum threads: 38,831
» Forum posts: 176,079

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 29 Guest(s)
Google, Bing, Applebot, AOL, bowlofred

Latest Threads
we open-sources faster py...
Forum: Code sharing
Last Post: tomtyiu
6 minutes ago
» Replies: 0
» Views: 2
Ко ланта
Forum: General Coding Help
Last Post: RaymondNaw
58 minutes ago
» Replies: 0
» Views: 12
Life advice
Forum: Bar
Last Post: Josephbar
3 hours ago
» Replies: 3
» Views: 3,582
Exponential Number Conver...
Forum: General Coding Help
Last Post: Jessicaadams
9 hours ago
» Replies: 5
» Views: 501
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
Yesterday, 03:21 AM
» Replies: 5
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Jan-11-2026, 05:21 AM
» Replies: 3
» Views: 757
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Jan-11-2026, 02:57 AM
» Replies: 8
» Views: 549
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 841
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,794
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 749

 
  Why args type is always tuple, when passed it as argument to the function.
Posted by: praveena - Jan-03-2018, 12:04 PM - Forum: General Coding Help - Replies (5)

I am passing list argument to the function. But type of args is always tuple.
I would like to know the specific reason for this behavior?
[python]
..... More

Print this item

  Reading specific rows (lookup)
Posted by: rumbles - Jan-03-2018, 12:01 PM - Forum: General Coding Help - Replies (3)

I would like to pull data from a csv, rather than manually enter date range and filename every time.

In my csv, example rows:

2018, 01, 201..... More

Print this item

  What dose these commands mean?
Posted by: Mads - Jan-03-2018, 11:51 AM - Forum: Homework - Replies (6)

What dose these commands mean? Huh Variable, Import random, Def(Getwords, Return, Checklists)While, Print, Input, For n in range, List. From a c..... More

Print this item

  easysnmp ImportError: cannot import name Session
Posted by: anna - Jan-03-2018, 10:50 AM - Forum: General Coding Help - Replies (2)

Hi


Package:- easysnmp0.2.5
Error:- ImportError: cannot import name Session

Python version: 2.7.5


[python]Python 2.7.5 (default, Aug 4 ..... More

Print this item

  Index Error, can't understand why.
Posted by: Diamond - Jan-03-2018, 10:13 AM - Forum: General Coding Help - Replies (5)

Hello!
I am getting an IndexError, and not sure why? My goal is to print out the higher numeric list element.

[python]
def mag(var):
pos=0..... More

Print this item

  global name 'thetime' is not defined
Posted by: cyberion1985 - Jan-03-2018, 09:52 AM - Forum: General Coding Help - Replies (10)

Hi,

So I have three files :

1.) File_INIT.py

The main file that will initialize (mostly) everything.
This file contains definitions for func..... More

Print this item

  unable to find vcvarsall.bat
Posted by: nithya - Jan-03-2018, 07:16 AM - Forum: General Coding Help - Replies (1)

I am using a LULU package which was created 6 years ago. I am executing the package setup.py file in python version 3.6 and the unexpected error "Unab..... More

Print this item

  IndexError: list assignment index out of range
Posted by: ted_chou12 - Jan-03-2018, 05:14 AM - Forum: General Coding Help - Replies (4)

I am trying to create a multiple dimension array with predefined index:
[python] returns = []
for s in context.securities:
returns[s..... More

Print this item

  Invalid Syntax
Posted by: mamta_parida - Jan-03-2018, 03:41 AM - Forum: General Coding Help - Replies (5)

Hello Everyone,

As I'm new to python, i tried some script but while running that script getting an error i.e. "There's an error in your program: in..... More

Print this item

  Cannot open file [ERNO 22] INVALID ARGUMENT
Posted by: JoshuaKim02 - Jan-03-2018, 12:37 AM - Forum: Web Scraping & Web Development - Replies (20)

https://gyazo.com/62c8bbc7236e1ea0fc475458b38605df

ERROR I GET: https://gyazo.com/829caac4a291c7a0fb2a8e793f62e9ae


I can't open the program at..... More

Print this item

  Impossible Function Task?
Posted by: ShadowWarrior17 - Jan-02-2018, 10:36 PM - Forum: Homework - Replies (11)

I have recently taught myself to use functions, and tried to do the impossible, this task:

Shhh. They are listening! We need a plan…
I know, let ..... More

Print this item

  In CSV, how to write the header after writing the body?
Posted by: Tim - Jan-02-2018, 10:02 PM - Forum: Web Scraping & Web Development - Replies (18)

Hello Forum,

I'm using csv package to build a .csv file in Python v3.6.
What I'm doing is converting and combining several .bib files into one C..... More

Print this item

  Close IDLE display window?
Posted by: Emerogork - Jan-02-2018, 07:36 PM - Forum: General Coding Help - Replies (14)

(Forgive improper terminology if any) When I run a .py program in IDLE, it opens a display window to see the output of the program. The problem is wha..... More

Print this item

  Need to replace (remove) Unicode characters in text
Posted by: ineuw - Jan-02-2018, 07:12 PM - Forum: General Coding Help - Replies (1)

Before posting here I resarched the subject of unicode replace, but got nowhere. I am using Python 3 version of Autokey, with which I want to run a sc..... More

Print this item

  Interpretation of a code
Posted by: Alberto - Jan-02-2018, 06:30 PM - Forum: General Coding Help - Replies (1)

Dear Python Users,

Please, help me to interpret the following line of a code (I have two df - futures_data and options_data):
[python]
for option..... More

Print this item

  pyBluez question
Posted by: DPaul - Jan-02-2018, 02:36 PM - Forum: General Coding Help - No Replies

Hi,

I am attempting to connect various devices with my Pi 3 / python 3, via bluetooth.
Installed pyBluez etc... but upon running a simple detectio..... More

Print this item

  Is there another way to do a bunch of methods calls ?
Posted by: Windspar - Jan-02-2018, 02:25 PM - Forum: General Coding Help - Replies (7)

[python]class Test:
def __init__(self):
self.a = 1

def one(self):
self.a += 1
return self

def two(self):
self.a += 2
retu..... More

Print this item

  Python Books bundle on HumbleBundle
Posted by: j.crater - Jan-02-2018, 01:38 PM - Forum: News and Discussions - No Replies

Interesting Python books bundles on HumbleBundle now, available for 2 weeks.

https://www.humblebundle.com/books/pytho...ook-bundle

Print this item

  bs4 : output html content into a txt file
Posted by: smallabc - Jan-02-2018, 01:19 PM - Forum: Web Scraping & Web Development - Replies (2)

Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.

[python]import bs4, requests
#------------------..... More

Print this item

  very simple dataframe question
Posted by: really_this_dumb - Jan-02-2018, 11:30 AM - Forum: Data Science - No Replies

Hi all,

New to python but am coding a project to become more familiar.

My dilemma is this: how do I access data within a given slice of a dataframe,..... More

Print this item

  UDP forwarding
Posted by: Skaperen - Jan-02-2018, 06:37 AM - Forum: News and Discussions - No Replies

i have a use case to do UDP forwarding, in a manner much like port forwarding. i am wondering if it is reasonable to do this in Python instead of C. ..... More

Print this item

  recursive file scan
Posted by: Skaperen - Jan-02-2018, 03:17 AM - Forum: Bar - Replies (8)

has anyone ever written a recursive file scanner based on os.scandir() that can recurse a file tree ? what about a scanner that can scan 2 or more fi..... More

Print this item

  Installing/configuring Tkinter on Linux Mint 18?
Posted by: mpd - Jan-02-2018, 12:21 AM - Forum: GUI - Replies (4)

I'm having trouble getting TKinter working.

[python]
Python 3.6.3 (default, Dec 13 2017, 17:56:50)
[GCC 5.4.0 20160609] on linux
Type "help", "..... More

Print this item

  Updating a package published on PyPI
Posted by: marqrdt - Jan-02-2018, 12:08 AM - Forum: General Coding Help - Replies (1)

Hi,
I'd like to contribute to this package on PyPI: https://pypi.python.org/pypi/pcsets
This package implements a common set of pitch operations ..... More

Print this item

  hierarchical MultIndex Python
Posted by: newpyguy - Jan-01-2018, 09:59 PM - Forum: Data Science - No Replies

Hi guys, I am new to python and hopefully could add my code here right. I try to do the following:
I want to read multiple txt files and later conca..... More

Print this item

  SymPy - SolveSet Values
Posted by: Plant_Boy - Jan-01-2018, 09:20 PM - Forum: General Coding Help - No Replies

I'm looking to create a program that finds modes using Sympy. It solves where two equations meet.

What is found is a non-solution and two real sol..... More

Print this item

  Code Review Help
Posted by: dmcquay - Jan-01-2018, 08:26 PM - Forum: Code sharing - Replies (4)

Hi there,

So I have some code that I wrote to assist me in deploying headless pi's. I am a complete Python newb but I wrote this up and have some q..... More

Print this item

  I cant find the location of my csv file
Posted by: Ummusabbar - Jan-01-2018, 02:56 PM - Forum: General Coding Help - Replies (3)

Hello all, I wrote and saved a program using tweepy to stream the twitter api,I used csv file in saving but cant find the location anywhere on my comp..... More

Print this item

  matplotlib plot to time
Posted by: kiyoshi7 - Jan-01-2018, 02:49 PM - Forum: General Coding Help - Replies (1)

hi, I'm plotting a lot of data with python, but I'd like to set the x axis to plot using the time and date that my data was gathered and I haven't bee..... More

Print this item

  TypeError when reading from FIFO
Posted by: ralf - Jan-01-2018, 11:24 AM - Forum: General Coding Help - Replies (1)

Hi,

I have a strange problem when reading from a named pipe.
When I write into the pipe using the echo command of my shell (zsh) everything wo..... More

Print this item

  no vowels function
Posted by: alex_bgtv - Jan-01-2018, 08:16 AM - Forum: General Coding Help - Replies (6)

Hi,
using codecademy for Python learning.
In one of the exercises, were asked to write a function deleting all vowels from a string (upper and lower..... More

Print this item

  telnetlib.Telnet timeout issue.. taking much time
Posted by: anna - Jan-01-2018, 05:26 AM - Forum: Networking - Replies (1)

[python]#!/usr/bin/python
import paramiko
import sys
import os
import xlrd
import unidecode
import telnetlib
import time

def telNetConnecti..... More

Print this item

  Check if string is uppercase or lowercase and eliminate
Posted by: Wolfpack2605 - Jan-01-2018, 03:44 AM - Forum: Homework - Replies (1)

In the war against Skynet, humans are trying to pass messages to each other without the computers realising what's happening.

To do this, they are ..... More

Print this item

  Love the emblem updates
Posted by: metulburr - Dec-31-2017, 11:52 PM - Forum: Board - Replies (9)

Not sure who is doing that, but I love the emblem updates for keeping up with current events.

Print this item

  for loop
Posted by: Wolfpack2605 - Dec-31-2017, 11:37 PM - Forum: General Coding Help - Replies (2)

I am not quite sure why for loops work this way. Why do you write for colour in colours and then print colour. It is confusing me.
[python]colours = ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  we open-sources faster py... 6 minutes ago tomtyiu tomtyiu Code sharing
  Ко ланта 58 minutes ago RaymondNaw RaymondNaw General Codin...
  Life advice 3 hours ago jamesaarr Josephbar Bar
  Exponential Number Conver... 9 hours ago Tuurbo46 Jessicaadams General Codin...
  If I open a file write or... Yesterday, 03:21 Pedroski55 bowlofred General Codin...
  a function to watch files 01-11, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... 01-11, 02:57 arbiel Pedroski55 General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
Most views
  The best Prog... 580766
  Tutorial Requ... 522438
  Web Scraping ... 442925
  New Users Int... 388247
  Newbie with P... 387150
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
tomtyiu Today
RaymondNaw Yesterday
Josephbar Yesterday
zaasheytop3010 Yesterday
Avigma Yesterday

User Panel Messages

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