Skip to main content

Posts

Variables

In Python, variables are defined with certain rules.  Let's get started reading about them!!  Don't create variable with a number Eg: '12a'; #is wrong. Don't define any variables with space, instead we can define with intend mark. Eg: new word = Hello ; #is wrong new_word = Hello ; #is correct Don't create any variable contain any of these symbols: :'",<>/?|\!@#%^&*~-+ it's considered best practice ( PEP8 ) that names are lowercase with underscores avoid using Python built-in keywords built-in keywords like  list  and  str avoid using the single characters  l  (lowercase letter el),  O  (uppercase letter oh) and  I  (uppercase letter eye) as they can be confused with  1  and  0

SPLUNK

                                                       I have came across 'Splunk' in google, where I got the below collective informations, which may help for you.  Some saying in a definition format as it is used for monitoring, searching, analysing and visualising the machine-generated data in real time.  Some saying this as "Google for logs" .  So, SPLUNK is a software platform  to search, analyse and visualise the machine-generated data, which is none other than the log file which is gathered from the websites, applications, sensors, devices etc. . Why we go for SPLUNK: Generally machine data are complex to understand, in an unstructured format and ot suitable for making analysis / visualisation!!! Splunk allows you to accept any data formats like .csv, json, log formats etc. Splunk performs capturing, indexing, and correlating the real time data in a searchable container and produces graphs, alerts, dashboards and visualisations.  It provides easy to access data

Python Intro

Hello everyone, I'm teaching python step by step in this blog!! Being beginner in learning python is tough to find where to start learning!! Here, I'll guide you how to start, where to start, and what can we do with python from basic!! Let's get started to learn python😀!! Basic Info about Python Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language!! It was created by Guido van Rossum, and released in 1991!!. Why to Learn Python? Easy to Learn and flexibility Python used in Data Science - With the release of ‘Numpy‘ and ‘Pandas’, Python rose to prominence in the world of data. Python works in Cross-Platform and it's a Open Source Python has many libraries and frameworks Python is used in Web development Python is portable and extensible Python is used for building GUI Python is used in Scripting and Automation Python is a Beginner's Language − Python is a great language for the beginner-level progra

Small talk on Vagrant

Intro: Vagrant is a tool for building and managing virtual machine environments. A modular framework to work with virtual machines. Why to use Vagrant : - No need to learn different CLI command of Virtualization providers , vagrant takes cares to manage the underlying VM's with its easy CLI interface. Commands are like, vagrant up vagrant ssh - Well defined environments as configuration used to create the environments is in simple text files. User can recreate as many Vagrant Instances (VMs) using same Vagrant file . - Vagrant is capable of executing configuration management software like Puppet/Ansible/Chef once the base system is ready (using box). This help o setup the environment (System + Application) on the target machines in automated way. - Developer can create/destroy multiple development environments in minutes. - As vagrant is wrapper only , you can choose the guest OS images supported by the virtualization platform you choice. Example on CentOS 8, you

Strings

Strings are used in Python to record text information, such as names.  Strings in Python are actually a sequence, which basically means Python keeps track of every element in the string as a sequence.  For example, Python understands the string "hello' to be a sequence of letters in a specific order. This means we will be able to use indexing to grab particular letters (like the first letter, or the last letter). This idea of a sequence is an important one in Python and we will touch upon it later on in the future. In this blog we'll learn about the following: Creating Strings Printing Strings String Methods String Indexing String Slicing String Properties Creating String: 1] Strings can be created as below using single quotes or double quotes strVar = 'Python' strVar1 = "python" 2] A multi-line string can declared with triple quotes as below: strVar2 = """python language is easy to learn""" 3] A

Numbers

In this blog, we will learn about numbers in Python and how to use them. Types of Numbers: Python has various "types" of numbers (numeric literals). We'll mainly focus on integers and floating point numbers . Integers are just whole numbers, positive or negative. For example: 2 and -2 are examples of integers. Floating point numbers in Python are notable because they have a decimal point in them, or use an exponential (e) to define the number. For example 2.0 and -2.1 are examples of floating point numbers. 4E2 (4 times 10 to the power of 2) is also an example of a floating point number in Python. we can do basic arithmetic function in python . See the below examples. # Addition  2+1 o/p - 3 # Subtraction  2-1 o/p - 1 # Multiplication  2*2 o/p - 4 # Division  3/2 o/p - 1.5 Note: Python 2 treats numbers that you type without any digits after the decimal point as integers, which can lead to some unexpected results during division. For example, if you type