blob: e421d29a7e92b58683e70de73446d8f46c92f277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
def to_string(x): # [too-many-return-statements]
# max of 6 by default, can be configured
if x == 1:
return 'This is one.'
if x == 2:
return 'This is two.'
if x == 3:
return 'This is three.'
if x == 4:
return 'This is four.'
if x == 5:
return 'This is five.'
if x == 6:
return 'This is six.'
if x == 7:
return 'This is seven.'
|