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
Answered by Dimitar D. Python tutor

1734 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

When to use a dectionary or a list


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


Write a short program to print all the even numbers 1 to 100


Write a recursive function that takes any integer n and prints the nth Fibonacci number.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences