Logo

Programming-Idioms

History of Idiom 169 > diff from v9 to v10

Edit summary for version 10 by coopara:
New Python implementation by user [coopara]

Version 9

2018-01-14, 07:32:20

Version 10

2018-01-26, 13:28:08

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Extra Keywords
size
Extra Keywords
size
Code
n = len(s)