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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Different file processing modes supported by python?

1135


Explain identity operators in python?

858


Why main method is static?

864


Explain about different blocks in exception handling?

880


What are class methods in python?

865


What is operator overloading in python?

906


What does range () do in python?

792


Is print a function in python 3?

865


What happens when you execute python == python?

1029


What is ord () in python?

760


What is a pass in python?

1097


What sort does python use?

804


How is print statement represented in python 3 (v/s python2)?

929


Explain the Meaning of a single and double underscore before an object name?

914


How is fail over mechanism works in python?

939