workshops:blender:python_basics
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| workshops:blender:python_basics [2015/06/20 23:24] – Julien Deswaef | workshops:blender:python_basics [2015/06/20 23:29] (current) – [Loops] Julien Deswaef | ||
|---|---|---|---|
| Line 112: | Line 112: | ||
| # o | # o | ||
| </ | </ | ||
| + | |||
| + | If you really need to get an index, it's possible to construct it with the function '' | ||
| + | < | ||
| + | for index, letter in enumerate(msg): | ||
| + | print( str(index) + ": " + letter) | ||
| + | |||
| + | # 0: h | ||
| + | # 1: e | ||
| + | # 2: l | ||
| + | # 3: l | ||
| + | # 4: o | ||
| + | </ | ||
| + | |||
| ===== Useful things ===== | ===== Useful things ===== | ||
workshops/blender/python_basics.1434835475.txt.gz · Last modified: by Julien Deswaef
