python-plus-plus/examples/numbers.ppp

5 lines
138 B
Plaintext
Raw Normal View History

2024-11-21 10:10:36 +11:00
numbers: int[] = [:int, 0, 1, 2, 3, 4, 5];
numbers = [:int, 2*x for x in numbers];
for number in numbers print(int_to_str(number)+"\n");