Answers for "python string array"

3

take array of string in python

x = list(map(str, input("Enter the values with spaces between them: ").split()))
Posted by: Guest on October-20-2021
2

create an array string using for in python

a = ["a_" + str(i) for i in range(10)]
print(a)
Posted by: Guest on July-24-2021
20

python arrays

array = [1,2,3,4,5]
print(array,array[0],array[1],array[2],array[3],array[4]

#Output#
#[1,2,3,4,5] 1 2 3 4 5
Posted by: Guest on March-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language