anagram.py (Anagrams of a string sorted in alpahabetical order)
Language: Python
Description: a program in python to generate anagrams of a given input string and display it in alphabetically sorted order
Detail:a Python program which will take a string as the first parameter, and write an output file called anagram_out.txt which contains of all the anagrams (permutations) of the string, one per line, sorted alphabetically.
python anagram.py 'ron'
This program will output a file with the following 6 lines, in this order:
nor
nro
onr
orn
rno
ron
-
Notifications
You must be signed in to change notification settings - Fork 0
poojabhandari/Anagram
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A bunch of interesting problems implemented by me in different programming languages
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published