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

Is set iterable python?

923


What is __ main __ in python?

872


What is the best interpreter for python?

987


How do you convert string as a variable name in python?

1040


What is the with statement in python?

907


Is python the future of programming?

825


Mention what are the rules for local and global variables in Python?

975


What is python metaclass?

1095


How python does compile-time and run-time code checking?

1068


Write python logic to count the number of capital letters in a file?

881


What are types in python?

968


What are closures in python?

926


What is python's parameter passing mechanism?

927


Explain how memcached should not be used in your python project?

980


What are python’s dictionaries?

905