write a python code.Take a lowercase word as an input from the user. Modify the word in such a way that the letters in the multiple of 3 positions become uppercase except position 0. Lastly, print the newly modified word. [You are not allowed to use upper() method] ============================================================= Sample Input1: jupyter Sample Output1: jupYteR Explanation 1: The characters ‘y’ and ‘r’ are in positions 3 and 6 respectively. So, these two characters will be converted to uppercase in the modified string. ============================================================= Sample Input2: python notebook Sample Output2: pytHon noTebOok Explanation 2: The characters ‘h’, ‘t’, and ‘o’ are in positions 3, 9, and 12 respectively. So, these three characters will be converted to uppercase in the modified string.
write a python code.Take a lowercase word as an input from the user. Modify the word in such a way that the letters in the multiple of 3 positions become uppercase except position 0. Lastly, print the newly modified word. [You are not allowed to use upper() method] ============================================================= Sample Input1: jupyter Sample Output1: jupYteR Explanation 1: The characters ‘y’ and ‘r’ are in positions 3 and 6 respectively. So, these two characters will be converted to uppercase in the modified string. ============================================================= Sample Input2: python notebook Sample Output2: pytHon noTebOok Explanation 2: The characters ‘h’, ‘t’, and ‘o’ are in positions 3, 9, and 12 respectively. So, these three characters will be converted to uppercase in the modified string.
Step by step
Solved in 2 steps with 2 images