On Thu, Feb 4, 2016 at 7:49 AM, Alexa kun <alexgnu...@gmail.com> wrote:

> Hi Dear!
> I newbie and read 2.1.2. Interactive Mode
> https://docs.python.org/3/tutorial/interpreter.html
>
> but when I type
>
> >>> the_world_is_flat = True
> >>> if the_world_is_flat:
> ...     print("Be careful not to fall off!")
>
> I got answer
>
> IndentationError: expected an indented block
>
> [root@localhost /]# python3
> Python 3.4.3 (default, Jun 29 2015, 12:15:26)
> [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> the_world_is_flat = True
> >>> if the_world_is_flat:
> ... print(Be careful not to fall off!)
>   File "<stdin>", line 2
>     print(Be careful not to fall off!)
>         ^
> IndentationError: expected an indented block
> >>>
> There is something funny about your print function.  The three periods
> indicate that you are no longer in interactive mode.
>

See my session below


> I have installed Python3 in Linux Fedora 23
> Please tell my why Python3 doesn't work?
>
> Sincerely!
> Alexander
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>

>>> flat = True
>>> if flat:
...     print("flat")
...
flat
>>>


-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to