Re: [Tutor] Visual Studio Community 2017

2017-04-18 Thread Jos Kerc
Hi, you might want to look at things like Anaconda, Enthought, ... They come with lots of packages/libraries pre-installed and a complete programming environment. For small project, you could even look at Jupyter. I t allows you to have your program, data & results (IIRC even pics & vids) in somet

Re: [Tutor] trouble with beautiful soup

2015-12-24 Thread Jos Kerc
Hi, see below. On Thu, Dec 24, 2015 at 6:21 PM, marcus lütolf wrote: > dear pythonistas, > for hours I'am traying to use Beautiful Soup for scraping some websites as an > exercise. > But each time I run the code below: > import urllib from BeautifulSpoup import * > url = raw_inpu

Re: [Tutor] create a copying tool

2015-05-19 Thread Jos Kerc
Hi, see comments below: On Tue, May 19, 2015 at 2:20 PM, Remco wrote: > Hello, > import os > import shutil > > target_dir = r'D:\target\' > source_dir = r'D:\source\' > source_file = r'D:\source\list.txt' you are not using this... > missing_files = open("missings.txt","w") > > for line in o

Re: [Tutor] Dictionaries and multiple keys/values

2013-03-25 Thread Jos Kerc
Hi, On Tue, Mar 26, 2013 at 5:36 AM, Robert Sjoblom wrote: > Hi again, Tutor List. > > I am trying to figure out a problem I've run into. Let me first say > that this is an assignment, so please don't give me any answers, but > just nudge me in the general direction. So the task is this: from a

Re: [Tutor] BMI calc

2013-03-12 Thread Jos Kerc
Hi, On Wed, Mar 13, 2013 at 4:07 AM, Soliman, Yasmin wrote: > I'm using python 2.7, where exactly does the return statment with the > (return (weight/(height*height))*703 calculation get posted in the function? > > def calc_BMI(weight,height): > if bmi <=18.5: > return 'underweight'

Re: [Tutor] implementing rot 13 problems

2013-03-11 Thread Jos Kerc
On Tue, Mar 12, 2013 at 6:57 AM, RJ Ewing wrote: > I am trying to implement rot 13 and am having troubles. My code is as > follows: > > class Rot_13(webapp2.RequestHandler): > def write_form(self, user=""): > self.response.out.write(rot_form % user) > def get(self): > self.write_form() > def p

Re: [Tutor] How to change the char in string for Python

2013-02-24 Thread Jos Kerc
On Sun, Feb 24, 2013 at 2:26 PM, Sudo Nohup wrote: > Thanks very much!! > > I learnt a lot from you kind reply. Not only is it about the question > itself, but also about how to ask a question in a mailing list.(Sorry that > it is the first time for me to ask questions in a mailing list). > > The

Re: [Tutor] New User-Need-Help

2013-02-15 Thread Jos Kerc
On Sat, Feb 16, 2013 at 12:20 AM, Deborah Piotrowski wrote: > It works, but it doesn't open a window. It just says that stuff under the > code. How do you open a window? Depends... How do you run the script? From Idle, command prompt? > > > On Fri, Feb 15, 2013 at 4:14

Re: [Tutor] New User-Need-Help

2013-02-15 Thread Jos Kerc
No, not same. At lea On Fri, Feb 15, 2013 at 11:44 PM, Joel Goldstick wrote: > so copy the code and the error message here > > > On Fri, Feb 15, 2013 at 5:42 PM, Deborah Piotrowski < > spiceninj...@gmail.com> wrote: > >> I did what you said, nothing changed. >> same errors, same syntax message.

Re: [Tutor] New User-Need-Help

2013-02-15 Thread Jos Kerc
Sorry, sent before finishing... If you changed raw_input, as asked. Now, it complains about print 'Game Over' Should become print('Game Over') On Sat, Feb 16, 2013 at 12:10 AM, Jos Kerc wrote: > No, not same. At lea > > > On Fri, Feb 15, 2013 at 11:44 PM, Joel

Re: [Tutor] Help!

2013-01-26 Thread Jos Kerc
You are missing a multiplication sign. Near the end of your formula. On Fri, Jan 18, 2013 at 1:56 PM, Carpenter, Steven < steven.carpen...@oakland.k12.mi.us> wrote: > To Whom it May Concern, > > I’m trying to get this code working. *Here’s my question:* > > Consider a triangle with side

Re: [Tutor] Recursion doubt

2008-04-19 Thread Jos Kerc
Hi, you are tackling 3 "heavy" subjects in just 1 go! graphs :a triving math society would approve your choice. But you might start with the *slightly* less difficult challenge: trees. I do not know your math/programming background, so the following link can perhaps enlighten you: http://www.brpr