Proplem in reg implemment

{moderator edit: code removed}

i click hint to show how can implement regu
but idont know where can i put regu in my code ?

@Mohamed_khaled_badr I think the error you are getting is indentation error, that is not correct use of tabs and spaces. Proper Identation is necessary in Python, as there are no curly brackets{} like other programming languages.
Try adding two spaces to each line below first for loop, upto J += …, I think that will solve your problem, if not then please attach the error message you are getting.