Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help in strings  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.
I have a used 2 strings 1 will store this value "the car" and the other store the value "good". Now my requirement is that when a use enters a sentence the string should split i can do it by using the split method. Suppose a user enters this "the car is good and it is mine". this gets split there is no problem but when the user enters the words in uppercase then its not working how can i achieve. i.e if the user enters The Car is GOOD and Its Mine. Then the entered string must be spitted according to the pre-defined Strings how can i achieve it.


Thanks & Regards
alexander
 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry guyz for my silly question i got its solution. Actually i converted the input to lowercase now and its fine.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!