|
|
|
@ -4,15 +4,23 @@
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>Brython</title>
|
|
|
|
|
<title>Palindrome</title>
|
|
|
|
|
<link rel="stylesheet" href="../../CSS/enigme.css" />
|
|
|
|
|
<link rel="stylesheet" href="../../CSS/Home.css">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="enigme">
|
|
|
|
|
<h1>PALINDROME</h1><br>
|
|
|
|
|
<div class="sign">
|
|
|
|
|
<h1>
|
|
|
|
|
<span class="fast-flicker">p</span>
|
|
|
|
|
<span>alin</span>
|
|
|
|
|
<span class="flicker">d</span>
|
|
|
|
|
<span>rome</span>
|
|
|
|
|
</h1>
|
|
|
|
|
</div><br>
|
|
|
|
|
<h2>Consigne</h2><br>
|
|
|
|
|
<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.
|
|
|
|
@ -35,7 +43,7 @@
|
|
|
|
|
<button onclick="rappel()" id="buttonRappel">Rappel</button> -->
|
|
|
|
|
<p id="textAide"></p>
|
|
|
|
|
<p id="textRappel"></p>
|
|
|
|
|
<div class='editor_class' id='editor'>def estPalindrome(var):
|
|
|
|
|
<div class='ace' id='editor'>def estPalindrome(var):
|
|
|
|
|
if(var == var[::-1]):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -43,7 +51,6 @@
|
|
|
|
|
|
|
|
|
|
print(estPalindrome("abba"))</div>
|
|
|
|
|
<div class='compiler_class'>
|
|
|
|
|
<button id="hide" class="btn" onclick="hide()">X</button>
|
|
|
|
|
<textarea id='console' readonly rows="30" cols="100"></textarea>
|
|
|
|
|
<div class="buttons">
|
|
|
|
|
<div>
|
|
|
|
|