This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
software_carpentary3 [2011/06/21 03:45] bhuvan |
software_carpentary3 [2011/06/21 04:36] medhamsh |
||
---|---|---|---|
Line 270: | Line 270: | ||
* 11 | * 11 | ||
* Factorial of a number | * Factorial of a number | ||
+ | * Write a program which takes a slice out of text | ||
+ | * For example : text = "python" now, slice it to yt py ho hon. | ||
* Finding Unique words in a given text | * Finding Unique words in a given text | ||
- | * Count of unique words, spaces, numbers. | + | * Count of unique words, spaces, number |
- | * Count the number of occurrences of every single word | + | * Count the number of occurrences of unique words |
* The unique words should be stored in a file. | * The unique words should be stored in a file. | ||
* The Unique words file should have only text, no numbers, no characters. | * The Unique words file should have only text, no numbers, no characters. | ||
* Find vowels consonants in a given text | * Find vowels consonants in a given text | ||
This is the text. Copy the the text to a file and give the name of the file as fs-dataset.txt | This is the text. Copy the the text to a file and give the name of the file as fs-dataset.txt | ||
- | <nowiki>The Free Software Definition | + | |
+ | <code> | ||
+ | |||
+ | The Free Software Definition | ||
We maintain this free software definition to show clearly what must be true about a particular software program for it to be considered free software. From time to time we revise this definition to clarify it. If you would like to review the changes we've made, please see the History section below for more information. | We maintain this free software definition to show clearly what must be true about a particular software program for it to be considered free software. From time to time we revise this definition to clarify it. If you would like to review the changes we've made, please see the History section below for more information. | ||
Line 734: | Line 739: | ||
Defective By Design | Defective By Design | ||
Free Software Foundation | Free Software Foundation | ||
- | </nowiki> | + | |
+ | </code> | ||
===== Regular Expressions ===== | ===== Regular Expressions ===== | ||
Line 781: | Line 787: | ||
Mr. matches Mr. and Mrs. | Mr. matches Mr. and Mrs. | ||
Mr\. matches only Mr. | Mr\. matches only Mr. | ||
- | </code> | ||
==== Character Classes ==== | ==== Character Classes ==== |