Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you make an array in Python?



How do you make an array in Python?..

Answer / chaitanya

The array module contains methods for creating arrays of fixed types with homogeneous data types. Arrays are slower then list.

Array of characters, integers, floating point numbers can be created using array module.

array(typecode[, intializer])

Returns a new array whose items are constrained by typecode, and initialized from the optional initialized value. Where the typecode can be for instance ‘c’ for character value, ‘d’ for double, ‘f’ for float.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How will you share global variables across modules?

0 Answers  


Is javascript easier than python?

0 Answers  


How do you find the type and identification number of an object in python?

0 Answers  


Do you know what is numpy and how is it better than a list in python?

0 Answers  


How will you print the contents of a file?

0 Answers  


What are the disadvantages of the Python programming language?

0 Answers  


What is break in python?

0 Answers  


What are negative indexes?

0 Answers  


Do python functions need return?

0 Answers  


What is egg and wheel in python?

0 Answers  


Understanding python super() with __init__() methods?

0 Answers  


How do you sort in python 3?

0 Answers  


Categories