|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<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>
|
|
|
<link rel="stylesheet"href="../css/all.css" />
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="enigme">
|
|
|
<p>
|
|
|
Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si c’est un palindrome et False sinon.
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
|
<h1 id="result" class="hidden"></h1>
|
|
|
|
|
|
<!-- <button onclick="run_init()">run</button>
|
|
|
<button onclick="submit()">submit</button>
|
|
|
<button onclick="aide()" id="buttonAide">Aide</button>
|
|
|
<button onclick="rappel()" id="buttonRappel">Rappel</button> -->
|
|
|
<p id="textAide"></p>
|
|
|
<p id="textRappel"></p>
|
|
|
<div class='editor_class' id='editor'>def estPalindrome(var):
|
|
|
if(var == var[::-1]):
|
|
|
return True
|
|
|
else:
|
|
|
return False
|
|
|
</div>
|
|
|
<div class='compiler_class'>
|
|
|
<textarea id='console' readonly rows="30" cols="100"></textarea>
|
|
|
<div class="container">
|
|
|
<div class="right">
|
|
|
<button onclick="run_init()" class="btn">Run
|
|
|
<svg width="180px" height="60px" viewBox="0 0 180 60">
|
|
|
<polyline points="179,1 179,59 1,59 1,1 179,1" class="bg-line" />
|
|
|
<polyline points="179,1 179,59 1,59 1,1 179,1" class="hl-line" />
|
|
|
</svg>
|
|
|
</button>
|
|
|
</div>
|
|
|
<!-- <div class="left">
|
|
|
<button onclick="submit()" class="btn">
|
|
|
<svg width="180px" height="60px" viewBox="0 0 180 60">
|
|
|
<polyline points="179,1 179,59 1,59 1,1 179,1" class="bg-line" />
|
|
|
<polyline points="179,1 179,59 1,59 1,1 179,1" class="hl-line" />
|
|
|
</svg>
|
|
|
<span>Submit</span>
|
|
|
</button>
|
|
|
</div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script src="https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="https://raw.githack.com/pythonpad/brython-runner/master/lib/brython-runner.bundle.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="../javascript/base.js"></script>
|
|
|
<script src="../javascript/palindrome.js"></script>
|
|
|
|
|
|
</body>
|
|
|
</html>
|