Skip to content

Commit 7901698

Browse files
committed
added new example for roman_range in README.md
1 parent e860da8 commit 7901698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ roman_encode(37) # returns 'XXXVII'
296296
roman_decode('XXXVII') # returns 37
297297
~~~~
298298
299-
**roman_range**: Generator which returns roman numbers on each iteration (perhaps one of the most funny api)
299+
**roman_range**: Generator which returns roman numbers on each iteration
300300
~~~~
301301
for n in roman_range(10): print(n) # prints: I, II, III, IV, V, VI, VII, VIII, IX, X
302+
for n in roman_range(start=7, stop=1, step=-1): print(n) prints: VII, VI, V, IV, III, II, I
302303
~~~~
303304
304305
#### String generations:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy