Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'error:': 0.07; 'subject:help': 0.08; 'received:192.168.1.101': 0.09; 'sfxlen:2': 0.11; 'python': 0.11; 'wrote': 0.14; '"python",': 0.16; "'/'": 0.16; 'syntaxerror:': 0.16; 'community,': 0.19; 'import': 0.22; 'to:name:python-list@python.org': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'lines': 0.31; 'file': 0.32; 'thanks!': 0.32; '(most': 0.33; 'skip:d 20': 0.34; 'charset:us-ascii': 0.36; 'two': 0.37; 'received:17': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:n 10': 0.64; 'dear': 0.65; 'invalid': 0.68 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-05-02_06:2013-05-02, 2013-05-02, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=18 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1302030000 definitions=main-1305020106 From: leonardo selmi Content-type: multipart/alternative; boundary="Apple-Mail=_FA052249-B20F-4A78-AFB9-E6379C59C71D" Subject: help to code... Date: Thu, 02 May 2013 15:50:58 +0200 To: "python-list@python.org" MIME-version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) Cc: "help@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 126 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367506274 news.xs4all.nl 15921 [2001:888:2000:d::a6]:38292 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44633 --Apple-Mail=_FA052249-B20F-4A78-AFB9-E6379C59C71D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii dear python community, i wrote the following program: from datetime import datetime now =3D datetime.now() current_month =3D now.month current_day =3D now.day current_year =3D now.year current_hour =3D now.hour current_minute =3D now.minute current_second =3D now.second print str(current_month) + '/' + str(current_day) + '/' + = str(current_year) +' '+=20 print str(current_hour) + str(current_minute) + str(current_second) and i got this error: Traceback (most recent call last): File "runner.py", line 125, in compilecode File "python", line 9 print str(current_month) + '/' + str(current_day) + '/' + = str(current_year) +' '+ = ^ SyntaxError: invalid syntax how can i write the last two lines correctly? thanks! --Apple-Mail=_FA052249-B20F-4A78-AFB9-E6379C59C71D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii dear = python community,

i wrote the = following program:

and i got this = error:
  File "runner.py", line 125, in comp= ilecode
  File "python", line 9
    print str(current_month) + '/'&nb= sp;+ str(current_day) + '/' + str(current_year)&n= bsp;+' '+
SyntaxError: invalid syntax

how can i write the last two lines = correctly?

thanks!


= --Apple-Mail=_FA052249-B20F-4A78-AFB9-E6379C59C71D--