Bachelor of Computer Science, University of the People
CS 1101-01 Programing Fundamentals
Dr. Giri Anandhi
20th December, 2023
Programming Assignment Unit 5
Below is my program show manipulation of the name using string and iteration.
Outputs
The function def display_left takes the input name which is string and displays characters {n} and uses
python string slicing to show the n character.
The function def count_vowels iterates each character from the name one by one checks if it is a vowel
and increments it accordingly and returns the number of vowels from the name.
The function def reverse_Name reverses the input name.
The main program then takes users input name and the number of characters and display it and then call
each function to demonstrate the name like left name display, count the number vowels and reverse the
name.
Reference:
[Link]