Posts

Showing posts from March, 2020

15 Days of Python: Day-2

Image
Number and Strings In this blog I am going to discuss about Numbers and Strings. First jump to numbers.  NUMBERS: 1. Arithmetic Operations --   we can simply perform addition,multiplication, division and modulo operations on numbers. example:  > 1+2=3                  > 2*2 = 4                  > 5/2 = 2.5 (float division)                   > 5//2 = 2 (integer division)                  > 10%3 = 1(remainder) 2. Assignment Operation --  example: > width = 20                 > height = 30                 > area = width*height                 > print(area)  >> 600  So there are nothing ...

15 Days of python: Day-1

I am starting this new series of blog '15 Days of python'. This will be a quick series and will be based on my personal experience while working with python and faced difficulties. Let's start - Installation on window:  https://www.python.org/downloads/windows/  go to the link and download installer then set your path and you are good to go. Installation on Ubuntu :  If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.6 with the following commands: $ sudo apt-get update $ sudo apt-get install python3.8 If you’re using another version of Ubuntu (e.g. the latest LTS release), we recommend using the  deadsnakes PPA  to install Python 3.8: $ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.8 If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distributi...