Answers for "python how to take array as input"

11

get list input from user in python

a = list(map(int,input("nEnter the numbers : ").strip().split()))
Posted by: Guest on September-17-2020
-1

enter elements in array in python

import array as arr
# Error
a = arr.array('d', [1, 3.5, "Hello"])
Posted by: Guest on July-24-2020

Code answers related to "python how to take array as input"

Python Answers by Framework

Browse Popular Code Answers by Language