hello,
when I was writing length converter I came across this problem
while statement(bold one) gives me Indentation Error that says "unindent does not match any outer indentation level" and I was wondering why's that? Could anyone suggest me how to fix it
def leng():
def milimetrai():
while True:
try:
x = float(raw_input("Enter lenght it mm or cm"))
break
except ValueError:
print "Wrong Input" , x
mm = x*10
cm = x/10
print x,'mm =',cm,'cm' #centimetrai
print x,'cm =',mm,'mm' #milimetrai
[B]while True:[/B]
deci = raw_input("To convert mm to cm or cm to mm press 1")
if deci == '1':
milimetrai()
else:
exit()