def main():
x = input("Input: ")
convert(x)
def convert(a):
#for loop over array of a e i o u
v = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
for x in v:
if x in a:
a = a.replace(x, "")
print(a)
if __name__ == "__main__":
main()
This works fine but I want to make it more succinct. There surely is a way to ingnore case in the .replace