Skip to main content

Posts

Showing posts from October, 2019

Floats

Floats Floats are used in Python to represent numbers that aren't integers. Some examples of numbers that are represented as floats are 0.5 and -7.8237591. They can be created directly by entering a number with a decimal point, or by using operations such as division on integers. Extra zeros at the number's end are ignored.  >>> 3/4 0.75 >>> 9.8765000 9.8765 Computers can't store floats perfectly accurately, in the same way that we can't write down the complete decimal expansion of 1/3 (0.3333333333333333...). Keep this in mind, because it often leads to infuriating bugs!  As you saw previously, dividing any two integers produces a float. A float is also produced by running an operation on two floats, or on a float and an integer. >>> 8 / 2 4.0 >>> 6 * 7.0 42.0 >>> 4 + 1.65 5.65 A float can be added to an integer, because Python silently converts the integer to a float. However, this implicit conversion is

Python

Hello guy's welcome back for the new post in this section I'll try to complete the basic things which you need to understand about the python.  And also wanna say that after I start this section I'll complete every single topic about the python in every new post so keep tracking for upcoming post for more information about the python programing. Just now we start with the definition  Python:               Python is a high-level programming language, with applications in numerous areas, including web programming, scripting, scientific computing, and artificial intelligence. It is very popular and used by organizations such as Google, NASA, the CIA, and Disney. if you still don't have python installed in your PC so click on the link below:      Python 3.8.0 Welcome to Python! The three major versions of Python are 1.x, 2.x and 3.x. These are subdivided into minor versions, such as 2.7 and 3.3. Code written for Python 3.x is guaranteed

Tweet's