0

why wont this go through properly every time i do it it says syntaxerror: unindent does not match any outer indentation level

try: meaning=42 print(meaning/0) print("the meaning of life") except (ValueError, TypeError):

6th Nov 2016, 10:21 PM
tazz 2014
tazz 2014 - avatar
2 Respostas
+ 2
There are 5 spaces. The code shown works for me (syntax ok) so it's probably an indentation issue with surrounding/inside but omitted code.
6th Nov 2016, 11:31 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
have you got five spaces? Also you don't seem to be catching Zero Division exception and not sure if you will ever print the meaning of life..
6th Nov 2016, 10:43 PM
Robert McC
Robert McC - avatar