Iloyd
Messages postés1Date d'inscriptionjeudi 26 octobre 2017StatutMembreDernière intervention26 octobre 2017
-
26 oct. 2017 à 17:43
psykowd
Messages postés4Date d'inscriptionjeudi 26 octobre 2017StatutMembreDernière intervention28 octobre 2017
-
28 oct. 2017 à 12:27
Bonsoir !
Je vous sollicite aujourd'hui car j'aurais besoin d'aide afin d'inverser le sortie de caractère de mon programme:
La programme :
from math import*
def ISNShadok(): #Ilies
nombre = int(input()) r = 0 x = 1 words = ['GA', 'BU', 'ZO', 'MEU']
while x!= 0: x = nombre // 4 r = nombre % 4 nombre = x
if r == 0: print(words[r], end = " ") if r == 1: print(words[r], end = " ") if r == 2: print(words[r], end = " ") if r == 3: print(words[r], end = " ")