math in Python part-3

Published: 30 December 2017
on channel: Cook The Code
9
0

Python Numbers
Integers, floating point numbers and complex numbers falls under Python numbers category. They are defined as int, float and complex class in Python.

We can use the type() function to know which class a variable or a value belongs to and the isinstance() function to check if an object belongs to a particular class.

a = 5
print(a, "is of type", type(a))

a = 2.0
print(a, "is of type", type(a))

a = 1+2j
print(a, "is complex number?", isinstance(1+2j,complex))

website:-https://coderworld109.blogspot.in/


Watch video math in Python part-3 online, duration hours minute second in high quality that is uploaded to the channel Cook The Code 30 December 2017. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 9 times and liked it 0 visitors.