Guest User

Untitled

a guest
May 25th, 2019
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def QueDesUns(n):
  2. if n%2 == 1 and n%5 != 0:
  3. a = '1'
  4. while int(a)%n != 0:
  5. a += '1'
  6. return int(a)
  7. else:
  8. return 'erreur'
  9.  
  10.  
  11.  
  12. #Mon code -> ne fais rien renvoyer
  13. for i in range(1,151):
  14. if n%2 == 1 and n%5 != 0:
  15. N = QueDesUns(i)
  16. print(i,N)
  17.  
  18. #code de NTT -> fais renvoyer un truc
  19. for n in range(1,151):
  20. if n%2==1 and n%5!=0:
  21. print(n,QueDesUn(n))
RAW Paste Data