You are here:Home-Tag: python

1.3 Formatting with print() function

Print() function is used to return the output (print the output) on the screen. It’s simple and easy to use. [crayon-5e7fb0ce59c6f447086632/] Special characters in Print() \n Char Is used to skip a new line. [crayon-5e7fb0ce59c7c297242156/] \t Char This character puts between words “tab” space. Escape Sequence 

By |2019-12-24T21:46:19+01:00November 10th, 2019|Categories: Python|Tags: , , , , |0 Comments

1.2.1 Numbers: Extra Calculation Properties

While a division operation you have two types of data, float and integer. Python returns float an integer division like 4/2=2.0 and not directly 2. This is a new property included with python3. If you want your result from division returns an integer, use double slash //. Check the example. [crayon-5e7fb0ce5a721474341715/] To have remainder

By |2018-12-23T01:10:53+01:00December 22nd, 2018|Categories: Other|Tags: , , |0 Comments

1.2 Numbers

In this section you will find following topics: Float and integer data structures Basic mathematic operations Define variables int (signed integers) − They are often called just integers or ints, are positive or negative whole numbers with no decimal point. Ex: -1000 20 41 2 float (floating point real values) − Also called floats, they represent

By |2019-03-03T19:54:46+01:00December 19th, 2018|Categories: Python|Tags: , , |0 Comments

1.1 Strings

Strings are basically set of characters which can be enclosed by single or double quotes, like “hello”, “abc123” etc. If you ever need to deal with textual data, you’ll almost certainly need to work with it as a string object or a series of string objects. The string type, str, is a powerful, flexible

By |2018-12-23T00:44:51+01:00December 16th, 2018|Categories: Python|Tags: , , |0 Comments