About 151,000 results
Open links in new tab
  1. numpy.repeat — NumPy v2.3 Manual

    Repeat each element of an array after themselves. Input array. The number of repetitions for each element. repeats is broadcasted to fit the shape of the given axis. The axis along which to …

  2. How To Use The Repeat () Function In Python?

    Jan 4, 2025 · Learn how to use Python's `repeat ()` function from the `itertools` module! This tutorial covers syntax, examples, and tips for repeating values in loops.

  3. How to Repeat N times in Python? (& how to Iterate?) - FavTutor

    Oct 25, 2022 · Learn how to repeat n times in python using loops and functions. Also, how do you iterate n times in python?

  4. How to Repeat Code N Times in Python - Delft Stack

    Feb 14, 2021 · This article discusses five distinct methods to repeat a specific operation a predetermined number of times in Python, ranging from classic for loops to more advanced …

  5. python - How do I write a loop to repeat the code? - Stack ...

    I am a very beginner in Python and I want to repeat this code. But I don't really know how to do this without "goto". I tried to learn about loops but did not understand how to apply them.

  6. How to Repeat a String in Python? - GeeksforGeeks

    Jul 23, 2025 · Using Multiplication operator (*) is the simplest and most efficient way to repeat a string in Python. It directly repeats the string for a specified number of times.

  7. How to Call Calling Functions Repeatedly | Tutorial Reference

    Sometimes you need to call a function a specific number of times. This guide explores various methods for achieving this in Python, from using for loops with range() to more specialized …