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 ▸

Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.


What does __init__ mean?


Create a program that generates prime numbers between two integer boundareis


Write a recursive function to find the factorial of a number n.