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.
A very nested list
Report a typo
Sample Input 1:
cat
dog
dragonSample Output 1:
['cat', ['dog'], [['dragon']]]Write a program in Python 3
str_1 = input()
str_2 = input()
str_3 = input()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.