Day 5 : Programming for Kids : String Manipulation
Day 5: Strings and String Manipulation
Learning Material:
- Video: Watch a short video on strings and string manipulation in programming. Here is an example video: https://www.youtube.com/watch?v=a4o9zFfyIM4
- Article: Read an article that explains how to work with strings and manipulate them in Python. Here is an example article: https://www.w3schools.com/python/python_strings.asp
- Interactive Tutorial: Complete an interactive tutorial that teaches you how to use strings and manipulate them in Python. Here is an example tutorial: https://www.learnpython.org/en/Basic_String_Operations
Exercise:
- Write a program that prompts the user for their first name and last name, and then prints out their full name in reverse order (last name first, then first name).
- Write a program that prompts the user for a string, and then prints out the string in all uppercase letters.
- Write a program that prompts the user for a string, and then prints out the string with all the vowels removed.
- Write a program that prompts the user for a sentence, and then prints out the sentence with the words in reverse order.
These exercises are designed to help the student practice working with strings and manipulating them in Python, and reinforce the concepts learned in the learning material. As with the previous days, the exercises should be challenging but not overwhelming, and provide the student with the opportunity to practice writing code on their own.
Happy Reading…Comments welcomed.
Day 2: https://anujxagarwal.medium.com/day-2-programming-for-kids-python-program-3dc98e2df550
Day 3:https://anujxagarwal.medium.com/day-3-programming-for-kids-functions-and-control-structures-4595f1459650
Day 4:https://anujxagarwal.medium.com/day-4-programming-for-kids-data-types-and-variables-c85e4488bfa5
Day 5: https://anujxagarwal.medium.com/day-5-programming-for-kids-string-manipulation-e5ff0fdacfec
Day 6:https://anujxagarwal.medium.com/day-6-programming-for-kids-conditionals-and-logic-d7724c050d60
Day 7:https://anujxagarwal.medium.com/day-7-programming-for-kids-loops-f9fe7e712dcc
Day 8:https://anujxagarwal.medium.com/day-8-programming-for-kids-list-4d3c36bbda0d
Day 10: https://anujxagarwal.medium.com/day-10-programming-for-kids-fun-activities-bfb825fa11de
Solutions :https://anujxagarwal.medium.com/kids-programming-fun-activities-programs-ans-d20d7d4170b5
Happy Reading…Comments welcomed.
If this was helpful, hit the ❤️ and follow me.