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.
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
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
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
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