You can attempt exercises as many times as you like. When you submit your answer, you will be informed it is correct or not. If not, you can re-attempt the question, with new, randomly generated data.