Semester 6 - chae research log: Difference between revisions
Line 15: | Line 15: | ||
=flask= | =flask= | ||
==python study== | ==python study== | ||
'''enumerate()'''<br>In Python, a for loop is usually written as a loop over an iterable object. This means you don’t need a counting variable to access items in the iterable. '''Sometimes, though, you do want to have a variable that changes on each loop iteration.''' Rather than creating and incrementing a variable yourself, you can use Python’s enumerate() to get a counter and the value from the iterable at the same time! | '''enumerate()'''<br>In Python, a for loop is usually written as a loop over an iterable object. This means you don’t need a counting variable to access items in the iterable. '''Sometimes, though, you do want to have a variable that changes on each loop iteration.''' Rather than creating and incrementing a variable yourself, you can use Python’s enumerate() to get a counter and the value from the iterable at the same time! https://realpython.com/python-enumerate/ | ||
'''join()''' | '''join()''' |
Revision as of 15:53, 26 April 2023
small-files
image for web
to mamang
down grading BG image
Display P3
Copyright:copyright Apple Inc 2017
GIMP built-insRGB
headphone-tree
qrcode butterfly
==
flask
python study
enumerate()
In Python, a for loop is usually written as a loop over an iterable object. This means you don’t need a counting variable to access items in the iterable. Sometimes, though, you do want to have a variable that changes on each loop iteration. Rather than creating and incrementing a variable yourself, you can use Python’s enumerate() to get a counter and the value from the iterable at the same time! https://realpython.com/python-enumerate/
join()