Answers for "string array 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

how to create an array in python

array = ["1st", "2nd", "3rd"]
#prints: ['1st', '2nd', '3rd']
array.append("4th")
#prints: ['1st', '2nd', '3rd', '4th']
Posted by: Guest on November-28-2019

Python Answers by Framework

Browse Popular Code Answers by Language