How to check if a word is greater the "g" alphabetically in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to check if a word is greater the "g" alphabetically in python?

string="how are you today" for the above statement i want output like this output: how you today ignore the words that greater than 'G'. please help me to code:

6th Sep 2017, 12:15 PM
Manikanta Simgamsetti
Manikanta Simgamsetti - avatar
5 Answers
6th Sep 2017, 12:54 PM
Calviղ
Calviղ - avatar
+ 1
Language?
6th Sep 2017, 12:23 PM
Calviղ
Calviղ - avatar
+ 1
ok thanks for your response.
6th Sep 2017, 1:09 PM
Manikanta Simgamsetti
Manikanta Simgamsetti - avatar
0
it is python code @Calvin
6th Sep 2017, 1:08 PM
Manikanta Simgamsetti
Manikanta Simgamsetti - avatar
0
Sorry, I need to study Python first..
6th Sep 2017, 1:08 PM
Calviղ
Calviղ - avatar