Posts

Modulo, division and exponentiation in Python.

Image
  Modulo, division and exponentiation: MODULO: The operator named modulo which is represented by % sign returns the remainder of the division of the number at its left by the number on its right side. e.g. print ( 7 % 4 ) Answer: 3 DIVISION: To divide we can use /  e.g. print(4/8) Answer:    0.5 EXPONENTIATION: The operator named exponentiation in Python is represented with ** sign. It increases the number on its left to the power of the number on its right side. print(3**4) Answer is:     81

The Type Function in Python

Image
  The Type Function:                                   Data types explain what kind of data a variable can hold. The type ( ) function can assist you figure out a variable data type. x = 53 print(type(x)) Answer is:         <class 'int'> Same goes for Strings, floats and Boolean values.

Code Comments in Python

Image
Using comments is really important to make sure that you yourself and other can understand your coding. To add comments to the scripts of your Python program you need to use # Sign. Python does not run what is written after # sign and ignores it. e.g: # Add 4 and 5 equal 9 print(4+5) 9 

Importance of Python Language in Artificial Intelligence, Machine Learning and Data Science.

Image
  Python and Artificial Intelligence Python is an interpreted, high-level interpreted programming language, intended specifically for rapid prototyping and integration with other languages. The most popular use of python is as an object-oriented programming language (OOP) language. It is the fundamental language of the data science community, where many open source projects develop their libraries, which help to solve complex real world problems, using large datasets and can be used in a very efficient manner. It has also a huge community around it, so that any user, or developer, can easily get the latest information about the current development within less than seconds of asking the question. Its syntax supports for both traditional expressions like expression, as well as new ones like functional programming, decorator, method, etc., which are more often than not used for computation in artificial intelligence systems. In simple terms, it creates objects, performs operations on ...