Skip to content

my-courses.net

Python Courses & Exercises

Facebook Twitter Google Plus Linkedin Instagram YouTube Pinterest Tumblr VK Email RSS
  • Home
  • Python Courses
  • Python Exercises
  • Computer Glossary
  • Register

Year: 2023

Solution Exercise 26: python algorithm to find all word beginning with the letter 'a'

March 11, 2023Y DerfPython-Exercises1 Comment

Exercise 26 Write a Python algorithm that asks the user to enter a string text and return all words beginning with the letter 'a'.

Solution Exercise 25: python algorithm to reverse a given string

March 11, 2023Y DerfPython-Exercises1 Comment

Exercise 25 Write a Python algorithm that asks the user to enter a word and return the opposite. Example: if the user enters the word 'python', the program returns 'nohtyp'.

Solution Exercise 24: python program to check whether a word is palindrome or not

March 10, 2023March 10, 2023Y DerfPython-Exercises1 Comment

Exercise 24 A palindrome is a word whose order of letters remains the same whether it is read from left to right or from right to left. For example: 'laval', 'radar,' sos' ... are palindromes. Write a program in Python that asks the user to enter a word and return it if it is a…

Solution Exercise 23: Python algorithm that extract the file extension

March 10, 2023March 10, 2023Y DerfPython-Exercises1 Comment

Exercise 23 Write a Python program that prompts the user to enter a file name, and then returns the extension of the file. Example if the user enters coursPython.pdf the program returns the message "The file extension is .pdf".

Solution Exercise 22: python algorithm that extract the first word in given text

March 10, 2023March 10, 2023Y DerfPython-Exercises1 Comment

Exercise 22 Write a simple program in Python that returns the first word of a given text. Example for the text: T = 'Python is a wonderful programming language', the program must return Python

Solution Exercise 21: algorithm python that determines the number of vowels in given string

March 9, 2023March 9, 2023Y DerfPython-Exercises1 Comment

Exercise 21 Write a simple Python program that counts the number of vowels in a given string. Example: for the string s = 'anticonstitutionally' the program must return the following message: The string anconstitutionally has 9 vowels.

Solution Exercise 20: python algorithm to swap letters in given word

March 8, 2023Y DerfPython-Exercises1 Comment

Exercise 20 Write a simple program in Python that exchanges the first and last characters of a given string

Posts navigation

Page 1 Page 2 … Page 13 Next

Search

Recent Posts

  • Solution Exercise 26: python algorithm to find all word beginning with the letter 'a'
  • Solution Exercise 25: python algorithm to reverse a given string
  • Solution Exercise 24: python program to check whether a word is palindrome or not
  • Solution Exercise 23: Python algorithm that extract the file extension
  • Solution Exercise 22: python algorithm that extract the first word in given text

Facebook Group

UserOnline

2 Users Online

Log In

one × 3 =

  • Register
  • Lost your password?
© 2023 my-courses.net | Wordpress_Theme: Blogghiamo by CrestaProject.          CopyrightFrance.com