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

What does the map() function do?

794


Is cython as fast as c?

850


What is metadata in python?

800


Does Python support Multithreading?

856


How do I run a script in python shell?

886


Tell us what is the usage of help() and dir() function in python?

909


What are the 3 types of numbers in python?

858


Does python have a ternary conditional operator?

864


What are the two main types of functions in python?

955


What is the biggest challenge facing your current job right now? What is your biggest failure?

743


What can I build with python?

788


Is Python good for backend?

840


Does xrange work python 3?

824


What does sort () do in python?

788


Write a program in python to produce star triangle.

812