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.
Splitting strings and joining lists
Fix the mistakes
Report a typo
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.comWrite a program in Python 3
text = input()
words = text.split()
for word in words:
# finish the code here
___
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.