_kuroo
Sped
- Joined
- Mar 1, 2012
- Messages
- 107
- Gender
- Male
- HSC
- 2013
I got 3 questions im stuck on. the teacher's given us this handouts and in it...it shows us the syntax BUT NO EXAMPLES. FML
8. Write a program that gets a sentence from the user and display it back with one word per line.
10. Without using the method centre, get a string from the user and a field size then display the string centred within that field, with dots "." on either side. You may assume that the field size is larger than the length of the string.
11. Write a program to get a line of sentence from a user. Your program must count the number of capital letters in the line and disply the number of capital letters.
anyone help?
using python 2.7
8. Write a program that gets a sentence from the user and display it back with one word per line.
10. Without using the method centre, get a string from the user and a field size then display the string centred within that field, with dots "." on either side. You may assume that the field size is larger than the length of the string.
11. Write a program to get a line of sentence from a user. Your program must count the number of capital letters in the line and disply the number of capital letters.
anyone help?
using python 2.7