Merge pull request #339 from pkowal1982/for_string

for statement iterating through String characters
This commit is contained in:
Rémi Verschelde 2017-02-09 10:28:45 +01:00 committed by GitHub
commit 5bed63e240
1 changed files with 2 additions and 0 deletions

View File

@ -696,6 +696,8 @@ in the loop variable.
for i in range(2,8,2):
statement # similar to [2, 4, 6] but does not allocate an array
for c in "Hello":
print(c) # iterate through all characters in a String, print every letter on new line
match
^^^^^