In this page we will list some programming exercises that the students can try to do at their own pace to get additional programming practice in Python.
- Ask the user to enter a 10-letter word (any string). For example the user may enter ‘strawberry’. Print the string with the following variations:
- A certain number of dots between every letter.
- For example, 2 dots: s..t..r..a..w..b..e..r..r..y
- An increasing number of dots between the letters
- For example, s.t..r…a….w…..b……e……r……..r………y
- A decreasing number of dots between the letters
- For example, s………t……..r…….a……w…..b….e…r..r.y
- A certain number of dots between every letter.