The Python interpreter has a number of functions and types built into it that are For a general Python object number , round (number, ndigits) delegates to. This Python example uses round to round numbers up and down. With freeplayslotsmachine.review a number is rounded up. I've been trying to round long float numbers like: int(round (x)). Will round it and change it to integer. EDIT: You are not assigning. For other containers see the built-in set , list , tuple , and dict classes, as well as the collections module. Return True if any element of the iterable is true. The return value is None. This is useful if you have edited the module source file using an external editor and want to try out the new version without leaving the Python interpreter. The classmethod form is a function decorator — see the description of function definitions in Function definitions for details. Return a new featureless object. If imag is omitted, it defaults to zero and the constructor serves as a numeric conversion like int and float. The float type is described in Numeric Types — int, float, complex. Return a slice object representing the set of indices specified by range start, stop, step. See dict and Mapping Types — dict for documentation about this class. 1 on Python is built without universal newlines support a mode with 'U' is the same as normal text mode. Note Because dir is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. MappingProxyType to prevent direct dictionary updates. If initializer is not given and iterable contains only one item, the first item is returned. In text mode the default, or when 't' is included in the mode argument , the contents of the file are returned as str , the bytes having been first decoded using a platform-dependent encoding or using the specified encoding if given. If x is not a number or if base is given, then x must be a string, bytes , or bytearray instance representing an integer literal in radix base. A custom opener can be used by passing a callable as opener. Changed in version 2. Loan and payment calculator.