Solution Exercise 40: a python program to swap words
Exercise 40 Write a Python algorithm which swap the first with the last word in a given string 's'. Example: if s = "Python is a programming language", the program…
Soultion Exercise 39: python algorithm to the number of words in a given string
Exercise 39 Write a Python algorithm that takes a string characters 's' as input and return the number of words contained in this string 's'.
Soultion Exercise 38: python algorithm to find the longest word
Exercise 38 Write a Python program that takes as input a string of characters 's' and returns the longest word found in 's'.
Soultion Exercise 37: list of common words to two strings
Exercise 37 Write a Python algorithm that creates a list whose elements are the common words to two charcter strings s1 and s2. Give an example.
Solution Exercise 36: python algorithm to delete mumtiple spaces
Exercise 36 Write a Python program which delete all multiple spaces in a given string 's'.
Solution Exercise 35: python algorithm to transform an url into a link
Exercise 35 Write a Python algorithm that take an url as input and return it as clickable link address.
Solution Exercise 34: extract from list scores, only the scores above the average with Python
Exercise 34 Given the list of student scores: scores = [12, 4, 14, 11, 18, 13, 7, 10, 5, 9, 15, 8, 14, 16]. Write a Python program that allows…