[Tutor] Hi Dear!
Alexa kun
alexgnuant at gmail.com
Thu Feb 4 07:49:39 EST 2016
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 at 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
>>>
I have installed Python3 in Linux Fedora 23
Please tell my why Python3 doesn't work?
Sincerely!
Alexander
More information about the Tutor
mailing list