Motive There are different types of modules in python which not everyone knows so we thought of introducing them to you guys. Let's start! Note: This is not a tutorial of how to use these but is to show that these modules also exist and if you want to know more you can visit there own page and if you want us to explain leave a comment below. Links to there page are also given below. Hope you found something useful. 1.Wikipedia Yes, there is a module called Wikipedia in python, you can easily install Wikipedia by pip install wikipedia . We cannot rely on this module for advanced use. It was designed for ease of use and simplicity. Learn More Here . Here is a simple example: import wikipedia wikiPython = wikipedia.summary("Python", sentences=2) print(wikiPython) One big disadvantage is that it works only if the internet is connected to your device. You can even control the number of sentences that you
Motive If you have read my other blogs you might have understood that I watch a lot of YouTube videos, Today I came across a video the made a Password generator. But that doesn't work as expected to work. All it does it shuffles all letters and number and the pick some out according to the length we gave at the beginning of the program. But here comes the problem it does not always have all numbers and special characters and some times it's just even though we have given all the necessary characters. So I taught about an alternative. The Project All we need is to import is a module called string and random. Which are pre-installed in python so no pip install needed: import string import random String is a module which gives access to all alphabets, uppercase and lowercase. Numbers and Special Characters. Even though we could write all those, it is a bit easier to do it this way. Check out their article to learn more, String , I suggest you check th