Dec-16-2017, 09:41 AM
You still have that scorevisitor > scorehome in wrong_score which serves no purpose :)
You get this error because function match doesn't return anything.
match function needs to return values that will be assigned to scorehome and scorevisitor
And about your looping until user enters proper scores, look into continue instead of break.
You get this error because function match doesn't return anything.
scorehome,scorevisitor=match(Home, Visitor,i+1)
match function needs to return values that will be assigned to scorehome and scorevisitor
And about your looping until user enters proper scores, look into continue instead of break.