Solution Exercise 41: python program which convert a list to text file
Exercise 41 Write a python program that takes as input a given list and creates a text file whose lines are exactly the elements of this list. Example: for the…
Python Courses & Exercises with solutions !
Exercise 41 Write a python program that takes as input a given list and creates a text file whose lines are exactly the elements of this list. Example: for the…
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…
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'.
Exercise 38 Write a Python program that takes as input a string of characters 's' and returns the longest word found in 's'.
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.
Exercise 36 Write a Python program which delete all multiple spaces in a given string 's'.
Exercise 35 Write a Python algorithm that take an url as input and return it as clickable link address.