From 2eeece02e7ee947f1efb4826f7484ff5f6b6a5b3 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Tue, 14 Jul 2015 15:01:50 +0100 Subject: [PATCH] Example on ranges --- Nim-for-Python-Programmers.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Nim-for-Python-Programmers.md b/Nim-for-Python-Programmers.md index d32256b..384538b 100644 --- a/Nim-for-Python-Programmers.md +++ b/Nim-for-Python-Programmers.md @@ -128,6 +128,18 @@ So, when using inheritance, be sure to inherit using refs, unless you know what ## From Python to Nim +### Ranges + +The syntax for ranges is different. a[x:y] becomes a[x..