how to install Python 3. 5 on Windows for this go to python. org
website on that click on downloads button. Click on set a file on this
click add python to path this check box it's very important I will tell
you why customized installation I am going to install it for all users
which will install it to this location. If I didn't have this directory,
then I would just add it at the beginning followed by a semicolon and
hit OK after that disk should be able to recognize the path and come
on ok thank you. manually at the start let 's say if I didn't have this.
directory then would be added at the end of the page.
2. Variables in python
variables are containers that can hold any data so you can use them to
store numerical data tax data etc. You can also put tax data into it so
for example you are spending two hundred and two dollar and five
cents on gas and you're spending some money on groceries, so we
just created variable to store all these individual expenses. You
cannot use special characters in it for example if I create a variable
like this then also it won't work because I have a plus sign here. will
get this error to get a complete list of Python keywords you can just
google it and you'll get a list.
3. Numbers.
In Python you can use Python programming language as a calculator
so let me demonstrate that to you by doing some simple mathematical
operations. today 's topic is numbers in Python numbers are very
important ingredient of any program I can't think of any software
program in the world which doesn't use numbers so they 're
extremely important. In Python you can do all the basic mathematical
operations in Python using these operator signs. There are two kinds
of numbers in Python one is integer which is like a whole number so
for example for 30 by 16 2 for all these are integer numbers because
they don't have a fractional part to it. float numbers are called a float
, number which is called a floating number. Python is not just Python
this is with any programming languages, and it's expected so it’s not
a bug or anything it is an expected output so if you want to again see
point 3 then use rounding number round rounding function so just say
wrong this particular number by 2 decimal points and you get 0. 3.
4. Strings
Python is a programming language where strings are used to store
text data in Python. The way Python stores ice-cream is it’s a
sequence of characters so text starts at specific memory address and
then after it is after it uses an index you can access in usual
characters. strings are immutable in Python programming languages
other programming languages such as C++ Java they will allow you
to do it but not Python. You can use double quotes and single quotes
to store text data so for example I can say hello like this so this is
defining a string using double quotes or I can use single quote or
doing the same thing they both are same thing there’s just no
difference this could be useful especially if you have single or double
quote as part of your string itself. Python doesn't know how to join
string with an integer so what you need to do first is convert this
number into a string. Python can join two strings and join this so
there is a function called STR very important you will use this a lot
in Python if you lose this it will convert 25 which was a number to a
string.