Python

De TARENTINO
Révision datée du 17 février 2020 à 21:44 par Ange (discussion | contributions) (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... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche
  1. !/usr/bin/python3
  2. -*- coding: utf-8 -*-
  1. VAR

nombre:int nb_hexa:str nb_oct:str nb_bin:str

  1. 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)