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 ▸

Implement a rocket launch countdown.


Write a function that takes a string, and outputs that string formatted in camelcase. (alternating upper and lower case for each character, e.g. cAmElCaSe)


Explain why creating a list of several instances of one element using something like my_list = [a] * 5 can result in strange behaviour


Write a python function that takes a string as parameter and returns the character in the string with the most occurrences, along with the number of times this character occurs