write a program count the number of characture (without space) in the given string #python_language?

write a program count the number of characture (without space) in the given string? st='hyderabad tech hall' x=0 for i in st: if i !=' ': x=x+1 print(x)