Deutsch   English   Français   Italiano  
<x-20231128122929@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!news.trigofacile.com!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: fr.comp.lang.python
Subject: Re: Tricher au scrabble...
Date: 28 Nov 2023 11:30:16 GMT
Organization: Stefan Ram
Lines: 27
Expires: 1 Dec 2024 11:59:58 GMT
Message-ID: <x-20231128122929@ram.dialup.fu-berlin.de>
References: <uk4fm4$852n$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de vwoyOPUniMGiSLPj1qgZ6gSldAwjhqNxh6E0iSzCMzVpm1
Cancel-Lock: sha1:jFSgSc9wdEGzlSY5kqVQoPvnB3k= sha256:NWnqssaq5CaRddl9c+UbU1TeZffPEQkVOjxhs+FfNtA=
X-Copyright: (C) Copyright 2023 Stefan Ram. All rights reserved.
	Distribution through any means other than regular usenet
	channels is forbidden. It is forbidden to publish this
	article in the Web, to change URIs of this article into links,
        and to transfer the body without this notice, but quotations
        of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
	services to mirror the article in the web. But the article may
	be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: fr-FR
Accept-Language: de-DE-1901, en-US, it, fr-FR
Bytes: 2071

Dominique <dominique.sextant@orange.fr.invalid> writes:
>del (mot)

  Tout d'abord, juste une remarque sur ce qui est cité ci-dessus :

  Au lieu de « del(x) », on peut souvent écrire simplement
  « del x », sans les parenthèses.

  Ensuite, on peut souvent remplacer 

x = 1
print( x )
del x

  par 

def ecris_1():
    x = 1
    print( x )

ecris_1()

  . Cela comprend certes plus de lignes, mais correspond
  probablement plus au style habituel. La variable « x »
  n'existe plus non plus après cela.