|
|
@ -5,12 +5,17 @@
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Palindrome</title>
|
|
|
|
<title>Palindrome</title>
|
|
|
|
<link rel="stylesheet" href="../../CSS/Enigme.css" />
|
|
|
|
<link rel="stylesheet" href="../../CSS/Enigme.css"/>
|
|
|
|
<link rel="stylesheet" href="../../CSS/Home.css">
|
|
|
|
<link rel="stylesheet" href="../../CSS/Home.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="enigme">
|
|
|
|
<div class="enigme">
|
|
|
|
|
|
|
|
<div class="titre_pre">
|
|
|
|
|
|
|
|
<div class="retour">
|
|
|
|
|
|
|
|
<a class="material-icons" id="home" href="../Home.html" style="font-size:36px;color:white;">home</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="sign">
|
|
|
|
<div class="sign">
|
|
|
|
<h1>
|
|
|
|
<h1>
|
|
|
|
<span class="fast-flicker">p</span>
|
|
|
|
<span class="fast-flicker">p</span>
|
|
|
@ -19,6 +24,7 @@
|
|
|
|
<span>rome</span>
|
|
|
|
<span>rome</span>
|
|
|
|
</h1>
|
|
|
|
</h1>
|
|
|
|
</div><br>
|
|
|
|
</div><br>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<h2>Consigne</h2><br>
|
|
|
|
<h2>Consigne</h2><br>
|
|
|
|
<p class="enonce">
|
|
|
|
<p class="enonce">
|
|
|
|
Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si c’est un palindrome et False sinon.
|
|
|
|
Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si c’est un palindrome et False sinon.
|
|
|
@ -32,12 +38,6 @@
|
|
|
|
<h2>Aide</h2><br>
|
|
|
|
<h2>Aide</h2><br>
|
|
|
|
<p>En python l’instruction [::-1] permet d’inverse une chaine de caractère. Par exemple print("ae"[::-1]) affiche : ea.</p>
|
|
|
|
<p>En python l’instruction [::-1] permet d’inverse une chaine de caractère. Par exemple print("ae"[::-1]) affiche : ea.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <button onclick="aide()" id="buttonAide">Aide</button>
|
|
|
|
|
|
|
|
<button onclick="rappel()" id="buttonRappel">Rappel</button>
|
|
|
|
|
|
|
|
<p id="textAide">Hello</p>
|
|
|
|
|
|
|
|
<p id="textRappel"></p> -->
|
|
|
|
|
|
|
|
<div class='ace' id='editor'>def estPalindrome(var):
|
|
|
|
<div class='ace' id='editor'>def estPalindrome(var):
|
|
|
|
if(var == var[::-1]):
|
|
|
|
if(var == var[::-1]):
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|