Eduardo Biano wrote: > def foo(request): > ans01 = request.get_form_var("ans01") > if ans01 == 4: > ans_1 = 1 > return ans_1
ans01 will be a string ("4"), not an int (4). -- http://mail.python.org/mailman/listinfo/python-list
Eduardo Biano wrote: > def foo(request): > ans01 = request.get_form_var("ans01") > if ans01 == 4: > ans_1 = 1 > return ans_1
ans01 will be a string ("4"), not an int (4). -- http://mail.python.org/mailman/listinfo/python-list