Skip to main content

Posts

Showing posts with the label Python

How Google uses Auto Correct

Google has been helping us in each and every way, but at the downside, it has also seeded a bad habit in us, i.e. Being lazy!! Google's auto correct feature has really made us forget how to spell words. Being so accurate and fast, that people now ignore to spell a word properly. If you use Google has your search engine for Web browsing you will observe that it has a powerful, fast feature of predicting the words that we are typing. How does Google manages to read our minds and get the correct word and that too within a 10th of a second? The answer to this lies in the Auto-Check Algorithm of Google. The alogrithm is simple but the key to it is "The huge Database" and frequent updation that Google has managed. Auto correction, simply means suggesting a word that's near to your input word in the Dictionary( the new word might the input word itself). Google's auto-correct algorithm uses techno...

Pylove

For the PyLovers , here we bring more coding examples. Written and tested by us, today we have 5 of the codes from basic to moderate that would help you get more attract towards #Python. Here are some codes that we have been practicing. Hope you try them too!!! Don't just copy+paste, edit too and see what changes can be done :) 1. Stringers: In this code, we have created a function that will take any string as a input and perform various string operations using the inbuilt string function as follows: 1. length of string using len 2. First occurrence of a char in string using  .index 3. Counting the number of times the char as appeared using .count 4. Convert string to upper and lower case using .upper and .lower respectively 5. Checking if the string starts and ends with a particular letter using .startswith and .endswith  6. Splitting the string using .split and storing it in a list. THE CODE: def stringers():     s=input('Enter ...