Add declared variables to a new array

variable1 = “hello1”
variable2 = “hello2”
variable3 = “hello3”
variable4 = “hello4”

new_array = [variable1, variable2, variable3, variable4]

@Aishwarya_Maggi,

Use below:

new_array = {variable1, variable2, variable3, variable4}