Remove the Vowels in String Python

Description

python program to get a String and remove the vowels
Input
Hello World
Output:
Hll Wrld

Solution

s1=input("Enter a String:")
s2=""
for i in s1:
    if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
        pass
    else:
        s2+=i
s1=s2
print(s1)

Explanation

visit each location in string s1, if charcter in the location is not a vowel then append it in s2, finally store s2 in s1. 
Note:
String is immutable, so you cannot modify a character directly in a orginal string.



Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution