Python : Différence entre versions

De TARENTINO
Aller à la navigationAller à la recherche
(Page créée avec « #!/usr/bin/python3 # -*- coding: utf-8 -*- # VAR nombre:int nb_hexa:str nb_oct:str nb_bin:str # START nombre=int(input('Donner moi un nombre?\n')) nb_hexa=hex(nombre) pri... »)
 
 
(54 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
#!/usr/bin/python3
+
{{Navigationp}}{{Sidebaradm}}{{Menu_Python}}
# -*- coding: utf-8 -*-
+
<p align="right" style="color: blue">'''{{CURRENTDAY}}/{{CURRENTMONTH}}/{{CURRENTYEAR}}'''</p>
 
+
<center>
# VAR
+
{{:Python_memento}}
nombre:int
+
</center>
nb_hexa:str
 
nb_oct:str
 
nb_bin:str
 
# START
 
nombre=int(input('Donner moi un nombre?\n'))
 
nb_hexa=hex(nombre)
 
print(nb_hexa)
 
nb_oct=oct(nombre)
 
print(nb_oct)
 
nb_bin=bin(nombre)
 
print(nb_bin)
 

Version actuelle datée du 7 mai 2025 à 11:23

Ft.png

11/01/2026

load PDF