Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Expected an indented block Date: Thu, 12 Sep 2013 15:57:19 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 26 Message-ID: References: NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1379001439 25731 166.84.1.1 (12 Sep 2013 15:57:19 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 12 Sep 2013 15:57:19 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:54059 In altugozgercek@gmail.com writes: > Hey guys ! its my first topic and I'm gonna start with a problem :) Im > totally beginner in Python and each time I try to run this program it > gives me the error down below: > http://imgur.com/ufUAMTs That error involves the previous program line, which your screenshot doesn't show, so it's hard to say exactly what the problem is. However, I'll take a guess that the previous line is an "if" statement, which requires that the following line be indented. Did you indent the print statement? This error can also be caused by using a mix of tabs and spaces on the same line. Don't do that. (And by the way, it's generally better to post errors and code as text instead of a screenshot.) -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"