def multiplo(x): return (x + 9) / 10 * 10 for x in range(150, 161): print(x, multiplo(x))
Standard input is empty
(150, 150) (151, 160) (152, 160) (153, 160) (154, 160) (155, 160) (156, 160) (157, 160) (158, 160) (159, 160) (160, 160)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!