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

How do you clean pyc files?

869


Which certification is best for python?

908


What is numpy shape?

868


What is the difference between python arrays and lists?

964


Python ­ How to create a multidimensional list?

1090


Has python has monkey patching concept within?

951


How do you remove the leading whitespace in a string in python?

994


Describe how multithreading is achieved in python?

1079


Draw a comparison between the range and xrange in python?

885


What is the sleeping time of giraffe?

907


How can you prevent dogpile effect?

847


How do you use return in python?

1044


Why python language is called python?

947


How do you alphabetize a list in python?

939


How do I debug an extension?

1036