## Solution Exercise 19: python algorithm to list all string in given list

Exercise 19 Write Python algorithm that lists the strings in the list l = ["laptop", "iphone", "tablet", "printer", "Ipad"] by indicating the length of each string.

## Solution Exercise 18: python algorithm to test whether a given string contains a given character

Exercise 18 Write a Python program that asks the user to input a string, and then checks if the string contains the letter 'a'. If it does, the program returns a message indicating the position(s) of 'a' in the string. If it does, the program returns a message indicating the position(s) of 'a' in the…

## Solution Exercise 15: python algorithm to check whether a given integer is prime or not

Exercise 15 Write a Python program that asks the user to enter an integer n and determines whether n is prime or not.

## Solution Exercise 14: python algorithm to checks whether an integer is a perfect square

Exercise 14 Write a Python algorithm that takes an integer input from the user, and checks whether it is a perfect square or not.

## Solution Exercise 60: replace the space with hyphen in python

Exercise 60 Write a Python program that defines a function replace_spaces_with_hyphen() which takes a string s as input and returns a new string with all spaces replaced with hyphens ("-") without using the replace() method. Exemple if s = "Python is object oriented programming language" , the function must returns: "Python-is-object-oriented-programming-language".

## Solution Exercise 10: algorithm python that compute the area and perimeter of circle

Exercise 10 Write a Python algorithm that prompts the user to enter the radius of a circle and calculates its area and perimeter, and then displays the results.

## Solution Exercise 9: algorithm python that compute the factorial of an integer

Exercise 9 Write a program in Python that asks the user to enter an integer n and display its factorial n! python