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 without registration, duration hours minute second in high quality. This video was added by user Cook The Code 30 December 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 9 once and liked it 0 people.