Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Argparse
Post: RE: Argparse

hello buran, thanks for your answer, I used this approach because i still would like being able to just print any age using one arg like: 'python name.py -a' -> 17 or 'python name.py -b' -> 14 e...
niru General Coding Help 5 4,246 Oct-11-2017, 09:07 AM
    Thread: Argparse
Post: Argparse

import argparse parser = argparse.ArgumentParser() parser.add_argument("-a", action="store_true", help="get anna's age") parser.add_argument("-b", action="store_true", help="get bob's age") parser.ad...
niru General Coding Help 5 4,246 Oct-11-2017, 08:12 AM
    Thread: replace vowels
Post: replace vowels

hello, i have a list with some names, and i have to replace wovels by " - " here is what i tried: list1 = ['john', 'tony', 'luck] def replace_vowel(mlist): vowels = "aeiouy" ...
niru General Coding Help 9 20,799 Sep-25-2017, 06:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020