by CodeChum Admin
Lists are fun to make, but it's even better to add or remove things from it when it's not usable anymore, right? Let's do just that in this problem now!
Instructions
Input
Two lines containing a string.
fun
PythonOutput
A line containing a string.
Python·is·really·funs1 = input()
s2 = input()
given_list = ["foo", "fun", "bar"]
given_list.append(s1)
given_list.insert(0, s2)
given_list.remove(given_list[2])
for i in given_list:
print(i)
Comments