Python Programming Examples

  INTRODUCTION TO PYTHON 

                    Python is a programming language,which is famous in machine learning and data science.

 PYTHON DATATYPES 

                    There are 5 datatypes in python.

Numeric 

lists or sequence

Boolean

sets

dictionaries 

 SOME EXAMPLE PROGRAMS IN PYTHON ARE 

TO CHECK WHETHER A GIVEN YEAR IS A LEAP YEAR OR NOT 

CODE : 


OUTPUT : 


AND THERE ARE MANY EXAMPLES

ONE OF THE IMPORTANT CONCEPT OF THE PYTHON IS EXCEPTIONS : 

SOME OF THE EXCEPTIONS DURING THE PROGRAM ARE 0/0 DIVISION ERRORS 

This Exceptions are mainly used for an user friendly environment between an user and the application

as shown in the below code

CODE : 



OUTPUT : 


WILL COMING BACK WITH SOME MORE EXAMPLES

STAY SAFE,BE HAPPY


Comments

Popular posts from this blog

Telecommunication for Technology

Web design in HTML