Let’s try to print current month ( July, 2017 ) using python “calendar” module :.
ReadThere are different websites available online, using which we can check and verify a regex string. e.g [this site](http://regexr.com) or[ this site](https://regex101.com) etc.
ReadIn this python programming tutorial, we will learn how to find the factorial of a number programmatically. The program will ask the user to enter a number, it will find the factorial and print it on the console.
ReadPython is a “object oriented” programming language. In simple words, classes are templates for the objects , and objects are collection of variables and functions.
ReadExceptions are errors that raised during execution time. That means your statement is correct but during execution time , it was trying to run a statement that cannot be done . Let’s take an example on a python exception :.
ReadA String which is same in both direction is called a palindrome string. If we reverse a palindrome String, it will remain the same. e.g. “123454321” is a palindrome String but “12345 ” is not.
ReadPython has functions and methods to manipulate files . No external library is required for doing file operations in python. In this tutorial, we will learn different python file operations like reading the content of a file, writing to a file etc.
ReadThe factorial of a number is the product of all the numbers from 1 to that number. e.g. factorial of 5 is 1 * 2 * 3 * 4 * 5 i.e. 120 . In this tutorial, we will learn how to find out the factorial of a number using a recursive method.
ReadWhat is a python package ? In simple words , python packages are directories containing python files. We love to arrange files in our computer in different directories, like all movies in a “movie” folder or all songs in a “songs” folder etc.
ReadA python module is simply a python file ( .py file ) with definitions and statements. The file name is the module name. After creating a module, we can use it any other module using “import” command.
Read