-5

if I have a numbers,for ex 87.
How can I make it : 87= 8 and 7

sco1
  • 12,154
  • 5
  • 26
  • 48
vetimH
  • 13
  • 3

1 Answers1

-1
a, b = divmod(87, 10)

divmod divides 87 by 10, returning both quotient and remainder.

Does that solve your issue?

Prune
  • 76,765
  • 14
  • 60
  • 81