What is the difference between a float and an integer variable type?

The float integer variable type, as the name suggests, only allows integer numbers to be stored(i.e. 1,4,5 etc.). On the other hand, float numbers could be decimal(i.e. 3.14, 5.52352345 ,etc.)

DD

Related Python Mentoring answers

All answers ▸

How do you write code to implement a recursive fibonacci algorithm?


Whats the output of "for i in "hello world": print(i)" and why/how is this achieved


What are recursive functions and when should they be used?


[Student query] Why do we import libraries/modules such as Numpy and Matplotlib into Python?