A very nested list

Report a typo

Write a program that takes three strings as input and then constructs and prints a nested list from them – with first string as a first element, a list containing only second string as a second element and a list containing another list containing a third string as a third element.

Sample Input 1:

cat
dog
dragon

Sample Output 1:

['cat', ['dog'], [['dragon']]]
Write a program in Python 3
str_1 = input()
str_2 = input()
str_3 = input()
___

Create a free account to access the full topic