This project is optional. If you submit it, it will be graded - the grade will replace any lower score on another project. Normalize and Sort WordsWrite a script that reads from 2 to 9 single-word names on the command line. The script needs to change every name to a "normal" format: First letter capitalized, everything else lower case. The script will then print these names on a single line, sorted. Assuming you call your script NameSort.py: - python NameSort.py john ANDY
- prints the output: Andy John
- python NameSort.py john ANDY tim Larry Bob
- prints: Andy Bob John Larry Tim
|