Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01dc8a0

Browse files
committed
found short variante for vowel choises values in 08
1 parent a551df1 commit 01dc8a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

08_apples_and_bananas/apples.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def get_args():
2828
help='The vowel to substitute',
2929
metavar='vowel',
3030
type=str,
31-
choices=['a', 'e', 'i', 'o', 'u', 'A',
32-
'E', 'I', 'O', 'U'],
31+
choices=list('aeiouAEIOU'),
3332
default='a')
3433

3534
args = parser.parse_args()

0 commit comments

Comments
 (0)