Deutsch English Français Italiano |
<NZzQ_XG_cmt2IUlvuEyQqE33HuU@jntp> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.nntp4.net!pi2.pasdenom.info!from-devjntp Message-ID: <NZzQ_XG_cmt2IUlvuEyQqE33HuU@jntp> JNTP-Route: nemoweb.net JNTP-DataType: Article Subject: Re: Why a time of the real world must be galilean (space-contraction) References: <180f1778e64eec8d$354$1238888$c2365abb@news.newsdemon.com> <gS3CnAvH7iZAR8z2fpZ16WpwAQI@jntp> <181154a9986e9f2f$4267$1238888$c2365abb@news.newsdemon.com> <LKudnak0JLYu1sL6nZ2dnZfqn_ednZ2d@giganews.com> <3mKMfwgJtRfN4V1gGsy4VLJ6a64@jntp> <lqBFOj-jmrn9yhAKRF22SfRFA68@jntp> <vld25h$sc0g$1@dont-email.me> <vldlqf$vkj0$1@dont-email.me> <vldm1o$vkj0$2@dont-email.me> <ZIpNXl5vsALmYe5butkf62NoG9M@jntp> Newsgroups: fr.sci.maths JNTP-HashClient: tUFZLTdhXW5csYE21c2DRqOH9bQ JNTP-ThreadID: 180f1778e64eec8d$354$1238888$c2365abb@news.newsdemon.com JNTP-ReferenceUserID: 238@nemoweb.net JNTP-Uri: https://www.nemoweb.net/?DataID=NZzQ_XG_cmt2IUlvuEyQqE33HuU@jntp User-Agent: Nemo/1.0 JNTP-OriginServer: nemoweb.net Date: Sun, 05 Jan 25 14:01:25 +0000 Organization: Nemoweb JNTP-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0 Injection-Info: nemoweb.net; posting-host="84b6076faf2736ff79ab5dbfa41a6108f3286443"; logging-data="2025-01-05T14:01:25Z/9164378"; posting-account="190@nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com" JNTP-ProtocolVersion: 0.21.1 JNTP-Server: PhpNemoServer/0.94.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-JNTP-JsonNewsGateway: 0.96 From: Python <jp@python.invalid> Bytes: 2545 Lines: 27 Le 05/01/2025 à 12:00, robby a écrit : > Le 05/01/2025 à 11:14, Dominique a écrit : >> for i in range (10,10000): >> t=str(i**2) >> #if len(t)%2==1: >> m1=int(len(t)/2) >> m2=m1+1 >> #m=int(len(t)/2) >> t1=int(t[:m1]) >> t2=int(t[m1:]) >> t3=int(t[:m2]) >> t4=int(t[m2:]) >> if t1+t2==i: >> print('Carré de ',i,' donne ',t,' soit',t1,'+',t2,' OK') >> if t3+t4==i: >> print('Carré de ',i,' donne ',t,' soit',t3,'+',t4,' OK') > > comment ça se fait que ça affiche > ('Carre de ', 10, ' donne ', '100', ' soit', 10, '+', 0, ' OK') > au lieu de > Carre de 10 donne 100 soit 10 + 0 OK > ? > (je ne connais pas python. j'ai aussi du enlever le é dont l'encoding > empêchait l'exécution). Parce que tu as exécuté du Python 3 avec Python 2.