python:python-code
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| python:python-code [14/02/2025 10:45] – [Print all the values - version 2] andrew | python:python-code [14/02/2025 10:48] (current) – [Print both keys and values] andrew | ||
|---|---|---|---|
| Line 64: | Line 64: | ||
| ==== Print both keys and values ==== | ==== Print both keys and values ==== | ||
| + | Using the " | ||
| + | <code python> | ||
| + | exampledict = { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | for x,y in exampledict.items(): | ||
| + | print(x, y) | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | class Modified Hall | ||
| + | engine Witherslack Hall | ||
| + | built 1948 | ||
| + | </ | ||
python/python-code.1739529954.txt.gz · Last modified: by andrew
