It depends on what keyboard you are using. For example, if you are using the default Android keyboard, you can see ?123 on the bottom left side of the keyboard, tap it to switch to numeric and symbols. To go back to alphabet, tap ABC.