I'm new to Python coding. I'm enrolled in the online course DEV274X: Introduction to Python fundamentals provided by Microsoft. For my first assignment, I had to write a code that processes a given string and prints the words whose first letter are greater than or equal to 'h' in a new line Only using the following methods: for/in (iteration), input, if, else, .isalpha() method, .lower() or .upper() method. The string was "Wheresoever you go, go with all your heart" and the desired output was enter image description here
My code and the output I got was
Can someone help me by telling me what's wrong with this code?
Aucun commentaire:
Enregistrer un commentaire