Python Coding Help? - Error when inputting a string to input command?

Input is bad for several reasons, that's why it's gona go away in python3 (actually raw_input will become input). So better start using it right away. If you know that you want to read an int, then use int(raw_input()), and use try/except to handle exceptions: def input_num(): while True: try: x=int(raw_input('Input a number: ')) break except ValueError: print("Not a number") pyramid(x) ps: you can create spaces with edit: alternatively you can use str.isdigit() on a string to check if it's a valid int before converting it to an int.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions