Yes, you read it right.
Like many other languages Go support the concept of enums through the IOTA function.
According to Go documentation
Within a constant declaration, the predeclared identifier
iotarepresents successive untyped integer constants. Its value is the index of the respective ConstSpec in that constant declaration, starting at zero. It can be used to construct a set of related constants.
Don’t worry if you didn’t get it.
Basically, Iota is a keyword in Go that helps you to give random values to your constant.
Let’s say you want to define 7 constant Monday, Tuesday, Wednesday …. Sunday.
Just like Cloud in the software world is something that is remotely present, I will be sharing my remote onboarding experience today, thus the title- Cloud Onboarding.
The Covid outbreak led to a difficult time for the entire world and I was no different. There were challenges here and there. Yet, I was among those lucky folks who still have the honor of working for an organization. I am employed and contributing through WFH from the beginning of March.
Let’s start from the very beginning- I have had concrete career goals in mind but 2020 had other plans. Like everyone…
In the previous blog we talked about Simple Data Types in Python, if you want to read about the basic data types in python have a look at the blog: https://medium.com/analytics-vidhya/data-types-in-python-c23b8178f96d
Lets talk about some more data types in python:
List is basically a collection of elements of same or different data types.
Let’s discuss a use case of using lists.
You have to store marks data for the student: english, maths, science
We can either use 3 different variables for each student.
If we keep on adding these type of variables for…
All the Job Seekers in the tech industry are always curious to know the difference between Product Based and Service-Based Companies.
I have made some pointers which represent the difference in these do segments of industries
Service-based firms are the organizations that take projects from the external entities and work towards delivering the projects. These companies are generally large companies and are mass recruiters in multiple domains. …
A variable is a named storage location where you can save some value when you execute your code. It takes some space in your RAM and its value persists till the time your code is executing.
# Without variables
# Add two numbers
The benefit of saving your values to a variable is that the values and calculation (addition in our case addition) can be reused in some further parts of the code.
A comment is a line in your code that you don’t want to run but write them just for…
Python is a very powerful programming language and can be used to write any piece of software. But you can also use it to do data science. Model your sales data, text mining on your latest Twitter feeds, or build the next movie recommendation engine. It’s all possible with Python. Python is open source, and there’s a bunch of programmers across the world that have written amazing extensions to Python, to help you achieve great things.
Python can be used in cases where the legacy analytical tools fail.
Before we start to learn the python program following is a list…
Python 2 Vs Python 3 Which should you select
There has been a huge debate on this topic, “ Whether you should learn Python 2 or Python 3”. If you are also in this dilemma this post is for you.
The first thing you should understand is that if an upgrade is done in anything in the world it is mostly for improving that thing in terms of experience, speed, efficiency, etc.
So, this upgrade of Python language is also done to improve the features and functionality of the language but than, Why is this debate all around about Python…
For all those who are very new to coding/programming and are about to start their journey by reading this blog post.
We give instructions to our system using the keyboard or mouse informing the computer to perform some set of tasks like:
The computer is a hardware device which needs some instructions to run and when we are performing some tasks on the computer, in the background there is some code which is running and telling the computer machine what it has to…
Growing on Instagram is a difficult and time-consuming job if you are already not a famous personality.
I started my food blogging page @_.interwined_dodos._ (do check it out and follow me there) and faced these challenges in growing. Some of the very common challenges I have faced were:
Being a lazy yet ambitious person…
Reading about the use cases of the Redis I came across a use case in which we can implement an autocomplete functionality using it.
I am going to show you the code to implement the Autocomplete in under 40 lines of code.
Here we go:
#redis client for pythonimport redis
#flask to expose api's to outside world
from flask import Flask,request,jsonify
app = Flask("autocomplete")
#creating a redis connection
r = redis.StrictRedis(host='localhost', port=7001, db=0)
#route to add a value to autocomplete list
name = request.args.get('name')
Story Teller and Data enthusiast