Problem with Python 3.5.0
eetix letix
eetix.letix at gmail.com
Sun Oct 11 13:12:29 EDT 2015
Hi,
I'm sorry but the last version of Python (3.5.0) had a problem. I start and
I meet this problem :
>>>a=5
>>>if a>0:
. . . print("a is a positive.")
. . . if a<0:
^
SyntaxError: invalid syntax
>>>
Normally this should work but problem
<http://fr.pons.com/traduction/anglais-fran%C3%A7ais/comes> comes to the
fact that Python considers "a" is a positive number and refuses to do the
command >>>if a<0:
And the command \n is doesn't working :
>>> a="test\nto\nsee\nif\nit\nis\nworking"
>>> a
'test\nto\nsee\nif\nit\nis\nworking'
>>>
Normally, \n should make
<http://fr.pons.com/traduction/anglais-fran%C3%A7ais/make> that the text
returns to the line but doesn't make it. And if y do :
>>> a="""test
. . . to
. . . see
. . . if
. . . it
. . . is
. . . working"""
>>>a
'test\nto\nsee\nif\nit\nis\nworking'
>>>
Thanks to fix this problems and good luck ;)
PS : I'm sorry for this really bad english but I'm french and I'm 14
<http://fr.pons.com/traduction/anglais-fran%C3%A7ais/order>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20151011/76b9416c/attachment.html>
More information about the Python-list
mailing list