Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #84527
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'output': 0.05; 'python)': 0.05; 'subject:Python': 0.06; 'disclosure:': 0.09; 'executes': 0.09; 'ide': 0.09; 'window.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'project,': 0.12; 'creates': 0.14; '"hello': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hits': 0.16; 'in;': 0.16; 'luck!': 0.16; 'output?': 0.16; 'script,': 0.16; 'world",': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'file,': 0.19; 'normally': 0.19; 'properly': 0.19; 'things.': 0.19; 'help.': 0.21; 'command': 0.22; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'adds': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'shown': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'thus': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'getting': 0.31; '25,': 0.31; 'correctly.': 0.31; 'directory,': 0.31; 'anyone': 0.31; 'file': 0.32; 'run': 0.32; 'maybe': 0.34; "i'd": 0.34; 'problem': 0.35; 'display': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'christopher': 0.36; "he's": 0.36; 'mentor': 0.36; 'doing': 0.36; 'next': 0.36; 'step': 0.37; 'writes': 0.38; 'expect': 0.39; 'explain': 0.39; 'sure': 0.39; 'most': 0.60; 'helps': 0.61; 'new': 0.61; 'times': 0.62; 'different': 0.65; 'bottom': 0.67; 'methodology': 0.68; 'subject:Hello': 0.72; '2015': 0.84; 'walkthrough': 0.84; '(full': 0.91; 'opens': 0.91; 'shell,': 0.91; 'subject:World': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Ypt4QVRDxGqhlPSW+4GXtNQ7xpUjLjC2ai1+CrWq9FQ=; b=fkEuV3Yjkytmpd32WRoKqW9JX4yJrLXGYePVMan/sD8fvabfLI+P9AzPNJjLDfy9ll TTr4KhXlBmuTfCKsULC+pY9q1sTSgv7oVuGFvXHqgHLsozz4EYjZ+lTKJOG8BOCwPntK w9U9FwYq8XWjHsmVE22x/C6X09uUF7FX9BJ4yD1Rj8Rf4VNFhd5JhM1OOgOr145R4K87 JNO/d0NF/Q/k9dgtB7cVG5jwHAwm9Knlmjd2QO2/PLjE+98xYoElR2Qk1R/tNfhzoAE/ PggkA8ygMOZQsbMcwgcHyQWXLNnQ0KwS6D2FfT5neirfKsL/hZihzY0ia3GBW6Fc44kh L1mQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.66.179 with SMTP id g19mr9473412igt.34.1422144312769; Sat, 24 Jan 2015 16:05:12 -0800 (PST) |
| In-Reply-To | <ma1b8f$pgf$1@dont-email.me> |
| References | <ma1b8f$pgf$1@dont-email.me> |
| Date | Sun, 25 Jan 2015 11:05:12 +1100 |
| Subject | Re: Hello World in Python |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.18114.1422144321.18130.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1422144321 news.xs4all.nl 2939 [2001:888:2000:d::a6]:60811 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 5260 |
| X-Received-Body-CRC | 1466333754 |
| Xref | csiph.com comp.lang.python:84527 |
Show key headers only | View raw
On Sun, Jan 25, 2015 at 10:53 AM, Christopher J. Pisz <cpisz@austin.rr.com> wrote: > So my buddy creates opens the IDE they gave at the workplace, creates a new > project, adds a demo.py file, writes one line : print "Hello World", hits > Run in the IDE and indeed the display is shown at the bottom when it > executes. > > I say the next step would be to get that to run on the command line. So > (keep in mind I know nothing about macs) my buddy opens a "zsh?" window, cd > to the directory, and I say the command i most likely: python demo.py > > It looks like it executes but there is no output to the command line window. > > Can anyone explain why there is no output? > Can anyone recommend a good walkthrough of getting set up and doing basics? Your broad methodology is fine! I'd normally expect that to work correctly. Was the file properly saved? Ask him to display the file (cat demo.py) to make sure it's what he thinks. Or maybe he's in a different directory to the one he thinks he's in; again, catting the file will help. Otherwise, it might be a weird problem with his shell, but that's hard to diagnose. One thing that I really like doing with my Python students (full disclosure: I'm a mentor with www.thinkful.com and am thus at times paid to help people learn Python) is some form of screen-sharing, so I can watch him/her trying things. There are a number of zero-dollar ways to do this, and it helps enormously. Flip on screen-share, ask him to run the script, and see where that leads. Good luck! ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Hello World in Python "Christopher J. Pisz" <cpisz@austin.rr.com> - 2015-01-24 17:53 -0600
Re: Hello World in Python Chris Angelico <rosuav@gmail.com> - 2015-01-25 11:05 +1100
Re: Hello World in Python Rustom Mody <rustompmody@gmail.com> - 2015-01-24 23:14 -0800
Re: Hello World in Python Chris Angelico <rosuav@gmail.com> - 2015-01-25 18:27 +1100
Re: Hello World in Python Terry Reedy <tjreedy@udel.edu> - 2015-01-24 20:12 -0500
Re: Hello World in Python "Christopher J. Pisz" <cpisz@austin.rr.com> - 2015-01-24 22:53 -0600
csiph-web