String tricks

Report a typo

Take a look at the code below. If you attempt to run it now, it will result in a TypeError. Your task is to correct the errors to ensure the join() method functions properly.

Write a program in Python 3
random_numbers = [1, 22, 333, 4444, 55555]
print("\n".join(random_numbers))
___

Create a free account to access the full topic