# Month: February 2023

#### Solution Exercise 57: python algorithm which determines the number of an occurrence within a given string

Exercise 57 Write a python algorithm as a function which takes a tuple of string (s, s1) as input and which returns the number of the occurrences of s1 within…

#### Solution Exercise 55: Python algorithm to swap a given string without using the swapcase method

Exercise 55 Write a python program as a function which takes a string s as input and which returns a string obtained from the string s by transforming each uppercase…

#### Solution Exercise 54: python program that delete multiple spaces in string a given string

Exercise 54 Write a python algorithm as a function which takes string s as input and which returns an other string obtained from s by removing all the spaces charachters…

#### Solution Exercise 53 : python program which transform given a string into lowercase

Exercise 53 By using the (Exercise 51), create a python algorithm as a function that takes as input a string s and which returns the same string in lowercase without…

#### Solution Exercise 52 : python algorithm to transform given a string into uppercase

Exercise 52 Using (Exercise 51), write a python program as a function which takes a string s as input and returns the same string in uppercase without using the upper()…

#### Solution Exercise 51: Python program to generate lists of all characters from its ascii code

Exercise 51 Using ascii code, write a Python program to generate lists of uppercase and lowercase letters: [A, B, C, …, Z] , [a, b, c,. .., z]