Answers for "string array in python"

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
7

array in array python

#You can put multiple arrays in one array
tests = [[1,2,3],["r",22,33]]
#prints: [[1,2,3],['r',22,33]]
Posted by: Guest on May-29-2020
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

Code answers related to "string array in python"

Python Answers by Framework

Browse Popular Code Answers by Language