Logo

Programming-Idioms

History of Idiom 165 > diff from v6 to v7

Edit summary for version 7 by Oldboy:
New Python implementation by user [Oldboy]

Version 6

2017-10-23, 19:16:20

Version 7

2017-10-28, 11:02:52

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
x = items[-1]