Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
initialize array of natural numbers python 1

initialize array of natural numbers python

May 5, 2022 by Anurag batra
a = array.array('i',(0 for i in range(0,10)))

Here is what the above code is Doing:
1. We’re creating an array of integers.
2. We’re creating an array of 10 integers.
3. We’re creating an array of 10 integers, each of which is initialized to 0.

Categories Python Examples
Post navigation
python print string in red color
Get all file in folder Python
© MyEduKit - 2022 . All Rights Reserved.