Fix the mistakes

Report a typo

The code below is supposed to find all website addresses (https://, http://, www.) in the input text. However, it is not finished. Complete the code and print all the addresses in the order in which they appear in the text, each on a new line. Mind that str.lower() can help you to convert all characters of the string to the lower case.

Sample Input 1:

WWW.GOOGLE.COM uses 100-percent renewable energy sources and www.ecosia.com plants a tree for every 45 searches!

Sample Output 1:

WWW.GOOGLE.COM
www.ecosia.com
Write a program in Python 3
text = input()
words = text.split()
for word in words:
# finish the code here
___

Create a free account to access the full topic