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.
Python Courses & Exercises
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.
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…
Exercise 15 Write a Python program that asks the user to enter an integer n and determines whether n is prime or not.
Exercise 14 Write a Python algorithm that takes an integer input from the user, and checks whether it is a perfect square or not.
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".
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.
Exercise 9 Write a program in Python that asks the user to enter an integer n and display its factorial n! python