Exercise 1: Create an Array
Practice creating an array.
We'll cover the following
Problem statement
Create and return an Array
containing three input strings, input_string_1
, input_string_2
, and input_string_3
.
Example
input_string_1 = "Hello"
input_string_2 = "Howdy"
input_string_3 = "Hey"
result = ["Hello", "Howdy", "Hey"]
Try it yourself
def new_array(input_string_1, input_string_2, input_string_3)result = ""#Start your code herereturn resultend