Answers for "defining array in python"

21

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