1.4 Lists

Lists are positionally ordered collections of arbitrarily typed objects, and they have no fixed size. They are also mutable—unlike strings and tuples, lists can be modified in place by assignment to offsets as well as a variety of list method calls. Create lists Storing different type of variable in a list is totally possible.

By |2020-06-18T13:28:54+02:00May 31st, 2020|Categories: Python|Tags: , , , , , |0 Comments

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-5f07b7ffda05f733740702/] Special characters in Print() \n Char Is used to skip a new line. [crayon-5f07b7ffda06b903627536/] \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-5f07b7ffda633182530745/] 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