Solution Exercise 65: python algorithm that test if the first character is equal to the last
Exercise 65 Write a Python algorithm which takes a string 's' as input and returns True if the first character is the same as the last character of the string…
Solution Exercise 64: python function which compute the number of uppercase character within a given string s
Exercise 64 Write a Python program as function which takes a string 's' as parameter and return the number of Uppercase characters within the string 's'. Example: if s =…
Solution Exercise 63: Python function which compute the sum of digits of a given string
Exercise 63 Write a Python program as function called sum_of_digits() that take a string 's' as parameter and return the sum of digits in the string 's'. Solution def sum_of_digits(string):…
Solution Exercise 62: python program which extract all digit within a given string
Exercise 62 Write a Python algorithm which determines the list of digits within a given string 's'. Example: if s = "Python3.8 is more powerful than Python2.7 " the program…
Solution Exercise 61: Python program which remove the duplicate characters from given string
Exercise 61 Write a Python algorithm as function which takes a string 's' as input and return an other string obtained by removing the duplicate characters of 's'. Example: if…
Solution Exercise 42: python algorithm which create a list from entered numbers
Exercise 42 Create a Python program that prompts the user to input numbers separated by semicolons ';'. The program should then convert the input into a list of integers.
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…