Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add @prateek3255 as a contributor * Added python solutions in day 4 and updated readme
- Loading branch information
1 parent
59b8bd3
commit 64de4be
Showing
5 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
''' | ||
* @author: prateek3255 | ||
* @date: 25/12/2018 | ||
''' | ||
|
||
string=input("Enter the String : ") | ||
vowels=['a','e','i','o','u'] | ||
|
||
count=0 | ||
|
||
for char in string: | ||
if char.lower() in vowels: | ||
count+=1 | ||
|
||
print("Number of vowels in the string are : ",count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
''' | ||
* @author: prateek3255 | ||
* @date: 25/12/18 | ||
''' | ||
|
||
string=input("Enter the string : ") | ||
characters={} | ||
|
||
for char in string: | ||
if char.lower() in characters: | ||
characters[char.lower()]+=1 | ||
else: | ||
characters[char.lower()]=1 | ||
|
||
print("The most occouring character in the string is : ", max(characters,key=characters.get)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters