Grokbase Groups Python tutor

Search Discussions

12,904 discussions - 62,317 posts

  • I can connect via ftp, but when I try to send a file, I get a no route to host error, I don't understand. code: '220 Service ready for new user.' '230 User logged in, proceed.' Traceback (most recent ...
    Richard kapplerRichard kappler
    Sep 11, 2015 at 4:00 pm
    Sep 11, 2015 at 10:22 pm
  • Scrambled on gmail here too.
    D WyattD Wyatt
    Sep 10, 2015 at 10:46 pm
    Sep 10, 2015 at 10:46 pm
  • Hello pythonistats, I wanted to ready data from excel file which in german Language and onovert to English language ?? -- Thanks Sarika Shrivastava | Software Developer Trainee
    Sarika ShrivastavaSarika Shrivastava
    Sep 10, 2015 at 5:00 pm
    Sep 11, 2015 at 12:32 am
  • Here's my code, no tabs were used, all whitespace verified made with spacebar: print("Please enter a number for feed speed...") print("1 - Batch") print("2 - 2 per second") print("3 - Real Time") ...
    Richard kapplerRichard kappler
    Sep 10, 2015 at 3:38 pm
    Sep 10, 2015 at 4:18 pm
  • And I get that. It does bring up another question though. When using with open(somefile, 'r') as f: with open(filename, 'a') as f1: for line in f: the file being appended is opened and stays open ...
    Richard kapplerRichard kappler
    Sep 9, 2015 at 2:24 pm
    Sep 10, 2015 at 4:17 pm
  • Yes, many questions today. I'm working on a data feed script that feeds 'events' into our test environment. In production, we monitor a camera that captures an image as product passes by, gathers ...
    Richard kapplerRichard kappler
    Sep 9, 2015 at 1:32 pm
    Sep 9, 2015 at 7:33 pm
  • Would either or both of these work, if both, which is the better or more Pythonic way to do it, and why? ####################### import whatIsNeeded writefile = open("writefile", 'a') with ...
    Richard kapplerRichard kappler
    Sep 9, 2015 at 1:05 pm
    Sep 9, 2015 at 6:59 pm
  • I need to find the index of the second occurance of a string in an xml file for parsing. I understand re well enough to do what I want to do on the first instance, but despite many Google searches ...
    Richard kapplerRichard kappler
    Sep 8, 2015 at 4:00 pm
    Sep 9, 2015 at 3:16 pm
  • Hi all, A colleague and I are embarking on a project for a client. We have agreed to implement a REST API in Falcon ( and colleague wants to implement it in Python 3. Are ...
    Sithembewena Lloyd DubeSithembewena Lloyd Dube
    Sep 5, 2015 at 1:06 pm
    Sep 7, 2015 at 4:58 pm
  • Hello, I am working with a csv file that has following sample data: Rank??? URL??? Linking Root Domains 1??? 9616487 2??? 6454936 3??? 5868081 4??? ...
    Nym CityNym City
    Sep 4, 2015 at 1:27 am
    Sep 7, 2015 at 9:24 am
  • dear pythonistats as a newcomber I want to create a set of lists containing n items, for example n = 3: (['a','b','c'], ['a','d','e'].......). The sequence of items in each list should be different ...
    Marcus LütolfMarcus Lütolf
    Sep 3, 2015 at 1:32 pm
    Sep 10, 2015 at 7:45 am
  • I have written another basic program out of python, please could you instruct me on how to fix it question= input("What is your question) print("Let me think about that") time.sleep(10) #10 seconds ...
    Nathan ClarkNathan Clark
    Sep 1, 2015 at 1:07 pm
    Sep 1, 2015 at 2:07 pm
  • I have been told that in gmail it is simple, but far from obvious to get your mail to open so you add to the bottom. There are three tiny dots which conceal the previous text. Click on that, and then ...
    Laura CreightonLaura Creighton
    Sep 1, 2015 at 5:31 am
    Sep 1, 2015 at 5:31 am
  • Hello Everyone, I'm creating an archive of a directory using shutil.make_archive and need to skip a single file if it is present in that directory. Is there a way to do this or should I be looking to ...
    Anthony PapillionAnthony Papillion
    Aug 14, 2015 at 10:27 pm
    Aug 14, 2015 at 10:57 pm
  • I was just looking at the sqlite3 docs at and found the following cheery news: "Usually your SQL operations will need to ...
    boB SteppboB Stepp
    Aug 14, 2015 at 6:40 pm
    Aug 14, 2015 at 11:01 pm
  • I am working in Tkinter. The scenario is that I click a button that starts a function running. No problem there. However, the function may take some time to run and I do not want the user to be ...
    Bill AllenBill Allen
    Aug 14, 2015 at 4:32 pm
    Aug 14, 2015 at 8:08 pm
  • I was looking at an example illustrating composition from the book, "Introducing Python" by Bill Lubanovic on p. 140: def __init__(self, description): self.description = description def ...
    boB SteppboB Stepp
    Aug 14, 2015 at 4:31 am
    Aug 14, 2015 at 1:17 pm
  • Hi, I'm trying to search for list values in a set of files. The goal is to generate a list of lists that can later be sorted. I can only get a match on the first value in the list: contents of ...
    Jason BrownJason Brown
    Aug 13, 2015 at 11:48 pm
    Aug 14, 2015 at 10:59 am
  • Beware! Lengthy post!! Sign of a confused boB. ~(: ) I believe that I understand now all of the things I want my project (Tentatively named "Montessori Classroom Manager".) to *do*. But I am ...
    boB SteppboB Stepp
    Aug 13, 2015 at 7:18 pm
    Aug 14, 2015 at 1:03 pm
  • To whom it may concern, I am having a problem solving the below question. I have used every resource that I could find to help me, but I'm seeing nothing. Can someone out there please help me ...
    Aug 13, 2015 at 1:01 am
    Aug 13, 2015 at 10:11 am
  • so I 'get' that -5**2 = -25 and (-5)**2 is 25, BUT if you write a function def sq(x): """ Output: sq returns the square of its input input x: a number (int or float) """ return x**2 and pass it a ...
    D WyattD Wyatt
    Aug 12, 2015 at 4:07 pm
    Aug 13, 2015 at 1:31 am
  • Question 1: What is the purpose and how is the following definition focused on the *? Turns out, you can't actually put the asterisk in the code, so what does it mean? os.stat(path, *, dir_fd=None, ...
    Clayton KirkwoodClayton Kirkwood
    Aug 12, 2015 at 3:23 am
    Aug 12, 2015 at 10:24 pm
  • Hi Everyone, Why is there an AttributeError, line 12, below : 'tuple' object has no attribute 'sort'? count = dict() fname = raw_input("Enter file name: ")# handle = open (fname, 'r')# for line in ...
    Ltc HotspotLtc Hotspot
    Aug 11, 2015 at 11:24 pm
    Aug 12, 2015 at 4:53 am
  • I am trying to develop code to perform global sequence alignment in python 2.7 for proteins with gap penalty of -5 and blossom64 scoring matrix. Code I have now give wrong output. When I give ...
    Белякова АнастасияБелякова Анастасия
    Aug 11, 2015 at 8:53 am
    Aug 11, 2015 at 9:26 pm
  • HI there!! I try to develop some scripts. I use ipython for check if my script work. When I change the script and try to import again that script I'm not able to see the modification so I need every ...
    Aug 11, 2015 at 8:29 am
    Aug 11, 2015 at 11:48 am
  • Hello everyone, Totally lost here. i have to create a program that asks user to input a value and then search for this value in a random list of values to see if it is found. Please see below for ...
    Quiles, StephanieQuiles, Stephanie
    Aug 11, 2015 at 3:18 am
    Aug 11, 2015 at 12:29 pm
  • To anybody, I am new to this with so small experiences. I am struggle to get around with python's install that connect with Mac's terminal. Basically, I am trying to make a codes into sd card for ...
    Shannon CallahanShannon Callahan
    Aug 9, 2015 at 10:14 pm
    Aug 10, 2015 at 11:07 pm
  • I downloaded pygame and tried testing it and it didn't work. I tried the latest version of pygame and it didn't work again. I tried moving the file to the place I think the import code gets programs ...
    Aug 7, 2015 at 10:50 pm
    Aug 8, 2015 at 3:52 pm
  • Hello everyone. :)) This time I am trying to fetch the required data using the API of the website. But, the problem I am having is I don't know how to make the request properly. When I enter the ...
    Gaurav LathwalGaurav Lathwal
    Aug 7, 2015 at 9:14 am
    Aug 7, 2015 at 8:55 pm
  • Hi, i noticed that the Python intrepeters on Android OS does not have Tkinter! Why they couldn't bring Tkinter on Android too? It there anyway ti use tkintr on android too ? Tnx :)
    Ali MoradiAli Moradi
    Aug 6, 2015 at 10:22 pm
    Aug 6, 2015 at 10:40 pm
  • Hello All, I need to do the following assignment. I need to know how do i hard code an example for each of the operators I am implementing? What i have so far is below? He said he does not care if we ...
    Quiles, StephanieQuiles, Stephanie
    Aug 6, 2015 at 4:55 pm
    Aug 7, 2015 at 8:08 am
  • Does anyone have an example code that shows how to plot errorbars with a constant line width for a dataset on a log log plot? Thank you.
    Colin RossColin Ross
    Aug 6, 2015 at 3:41 pm
    Aug 6, 2015 at 5:26 pm
  • Hello. I'm writing battleship game. I have one class for bot field: and one class for player field: I made class for player ...
    Aug 6, 2015 at 3:05 pm
    Aug 6, 2015 at 3:05 pm
  • import re text = input('Enter your text with phone number using xx-xxxxxxx format \n') contact = re.compile(r'\d\d-\d\d\d\d\d\d\d') for i in range(len(text)): chunk = text[i:i+10] mo = ...
    Aadesh ShresthaAadesh Shrestha
    Aug 6, 2015 at 5:39 am
    Aug 6, 2015 at 10:38 am
  • i have read -- with what i think is a reasonable amount of attention -- all of the doc' i can find about string formatting in python. for the life of me, i cannot see how any of the other methods do ...
    Tom arnallTom arnall
    Aug 6, 2015 at 4:08 am
    Aug 10, 2015 at 3:42 am
  • I clearly remember that the standard for Python was to use 2 spaces for indentation of blocks. Now Pep 8 says 4. When did that change? I hate it when things change on me like that. And what else has ...
    D WyattD Wyatt
    Aug 5, 2015 at 11:31 pm
    Aug 10, 2015 at 9:34 pm
  • Thanks so much fro the help. What I want to do is to obtain a selection of the function I want to run. ena = Rnaseq(options.configura, options.rst, options.outdir) cmdset = [ ena.trimmomatic, ...
    Aug 5, 2015 at 8:33 pm
    Aug 10, 2015 at 8:12 am
  • I have a class with many objects and I want to select using opt parse some function id = options.step ena = Rnaseq(options.configura, options.rst, options.outdir) now = ...
    Aug 5, 2015 at 4:04 pm
    Aug 5, 2015 at 5:01 pm
  • Hi everyone: I want to write a python program that reads through the data file of mbox-short.txt.Mbox-short.txt, i.e., download is available at Secondly, I ...
    Ltc HotspotLtc Hotspot
    Aug 5, 2015 at 2:15 pm
    Aug 8, 2015 at 6:38 pm
  • To pass by reference or by copy of - that is the question from hamlet. ("hamlet" - a community of people smaller than a village python3.4-linux64) xlist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i = 0 for ...
    John DoeJohn Doe
    Aug 5, 2015 at 7:53 am
    Aug 6, 2015 at 7:15 pm
  • As seen below (closely), some filenames are not being removed while others are, such as in the first stanza, some pdfs are removed, some aren't. In the second stanza, Thumbs.db makes it through, but ...
    Clayton KirkwoodClayton Kirkwood
    Aug 5, 2015 at 12:52 am
    Aug 5, 2015 at 7:35 am
  • I'm having a few problems defining a Schecter function in python. Without going into too much detail I need to add a +0j factor for matplotlib to plot the function in real and imaginary space. I know ...
    Michael RobertsMichael Roberts
    Aug 4, 2015 at 10:16 pm
    Aug 4, 2015 at 11:03 pm
  • Hi there, I'd like to find some python module to easily process bytes array data, like encoding different types of data (char, long, short, float, etc) into a same bytes array. I checked Python ...
    Michelle Meiduo WuMichelle Meiduo Wu
    Aug 4, 2015 at 4:26 pm
    Aug 5, 2015 at 3:51 am
  • Hi all, Goal: To plot asymmetric x error bars for a single point using errorbar. I am interested in displaying the inter quartile range (IQR) for a data set. Code: import numpy as np import ...
    Colin RossColin Ross
    Aug 4, 2015 at 2:43 pm
    Aug 5, 2015 at 12:35 pm
  • About the listbox from sqlite, yes you are right, i'm beginner in python, and i watched many videos and study books, but i can't write what i want to :(, i mean i know the python basics (like data ...
    Ali MoradiAli Moradi
    Aug 4, 2015 at 9:22 am
    Aug 4, 2015 at 7:32 pm
  • Dear Python tutor list ... I'm currently learning Python through an online course but after learning the basics of the language I need to apply what I learned on a real project and start practicing ...
    Lulwa Bin ShukerLulwa Bin Shuker
    Aug 4, 2015 at 4:21 am
    Aug 4, 2015 at 8:51 am
  • Hello , i have to write a palindrome tester using a stack and a queue. You will need to handle strings that may have upper/lower case letters and white space between the letters. We will not include ...
    Quiles, StephanieQuiles, Stephanie
    Aug 4, 2015 at 3:55 am
    Aug 4, 2015 at 9:04 am
  • Hi, I am new in python, so just curios if there are any good and appreciated python certification programs/courses ? Cheers, Andrei
    Aug 3, 2015 at 8:55 pm
    Aug 8, 2015 at 6:51 pm
  • Hi to all. Can you help me plz. I want to make a for loop with a huge numbers. for example: for i in range (0,9000000000): ?make_some_code but range and xrange cant operate with such big numbers. Can ...
    Dima KulikDima Kulik
    Aug 3, 2015 at 6:15 pm
    Aug 4, 2015 at 8:28 am
  • hi, this is my code ( how can i show the two fields name "esperanto" and "english" in a listbox positioned under the entry widget? i want the ...
    Ali MoradiAli Moradi
    Aug 3, 2015 at 12:22 pm
    Aug 3, 2015 at 9:11 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
grouptutor @

Top users

Kent Johnson: 5047 posts Alan G: 4628 posts Daniel Yoo: 2046 posts Alan G: 1599 posts Steven D'Aprano: 1151 posts Luke: 794 posts Alan Gauld: 775 posts Dick Moores: 694 posts Bob gailer: 609 posts Bob: 585 posts Terry Carroll: 545 posts John Fouhy: 489 posts Jacob S.: 440 posts Dave Angel: 420 posts Wayne Watson: 415 posts Liam Clarke: 393 posts Denis: 380 posts W chun: 367 posts Emile: 361 posts Lie Ryan: 358 posts
show more