How to Learn Coding Python?

 How to Learn Coding Python?

Python is a high-level, dynamic, object-oriented, interpreted and generally used in programming language. Guido Van Rossum designed this in 1991. It is used for web-development(sever-side), software development, mathematics, system scripting, artificial intelligence. Fortunately for beginners, Python has simple easy-to-use syntax. This makes Python an excellent language to learn to program for beginners. Python is a cross-platform programming language, which means that it can run on multiple platforms like Windows, MacOS, Linux, and has even been ported to the Java and .NET virtual machines. It is free and open-source. Version of python are Python 1, Python 2, Python 3 in that latest Version is Python 3.9.1.

Installation of Python 

  • Step 1: Select Version of Python to Install.

  • Step 2: Download Python Executable Installer.

  • Step 3: Run Executable Installer.

  • Step 4: Verify Python Was Installed On Windows.

  • Step 5: Verify Pip Was Installed.

  • Step 6: Add Python Path to Environment Variables (Optional)

  • Step 7: Install virtual Nv (Optional)

 

Before starting coding of Python you have to learn some basic about Python after that you will be writing own Python program quickly.

 

Step 1: Data Types And Variables

 

A data type is an attribute of data which tells the compiler (or interpreter) how the programmer intends to use the data. There are many data types like Numbers, Strings, Boolean, Lists, Tuples, Dictionary, Sets. Python provides three main data types are Number, String, Boolean.

  • String Type: str  For Example x = str("Hello World") 

  • Numeric Types: int , float , complex. For Example x = int(20), x = float(20.5), x = complex(1j)

  • Boolean Type: bool. For Example x = bool(5)

Variables 

Variables are containers for storing data values.

For Example:

x = 5

y= “john”

print (x)

print(y)

output

5

john

 

Step 2: Conditional Statements

A conditional statement is a Boolean expression that, if True, executes a piece of code. This is a great way to give your program some branching logic that controls the flow of code.

There are three types of conditional statements they are if, if-else, if-elif-else 

Step 3: Functions

A function is a block of code which only runs when it is called. In that you can also pass data into a function which is known as parameter. A function can return data as result. There are two type of function there are built-in function, user-defined function. 

User-Define Function

User defined functions are those that we define ourselves in our program and then call them wherever we want.


Built-In Functions 

Built-in functions are those that are already defined in Python libraries and we can call them directly.


Step 4: Loops 

Looping statement is the statements which execute one or more statement repeatedly several number of times. They are for loop, while loop.


For Loop

For loop is used to iterate over elements of a sequence. It is often used when you have a piece of code which you want to repeat "n" number of time. 


While Loop

While Loop is used to repeat a block of code. Instead of running the code block once, it executes the code block multiple times until a certain condition is met.

Step 5: Data Structures

A data structure is a particular way of organizing data in a compute so that it can be used effectively. They are two types, built-in data structure and user-defined data structure. 

Built-In Data Structure

Build-in data structure makes the programming easier and helps you to use them to obtain a faster solution. Almost 80% of real-world data is covered with these four data structures. It has four primary data structure that is list, tuples, dictionaries, set.

List

Most commonly used data structure in Python is List. It allows you to store elements of different data types in one container. 

For Example:

jon_snow = ["Jon Snow", "Winterfell, 30]

  print (jon_snow) # prints entire list 

  

  print (jon_snow[0]) # prints the first letter in the list

  

  print (len(jon_snow)) # prints the length of the list

Tuples

It is very similar to List with the difference of mutability. Once data is entered into tuples, it
cannot change, making tuple immutable. The size of the tuples is fixed. 

For Example:

car = ("Ford", "Raptor", 2019, "Red")

  print (car)

  

  print (len(car))

  

  print (car[1])

  

  print (car[2:])

Dictionaries

A dictionary stores key-value pairs, where each unique key is an index which holds the value associated with it. Dictionaries are unordered because the entries are not stored in a linear structure.

For Example:

empty_dict = {}

  print (empty_dict)

  

phone_book = {"Batman": 468426,

              "Cersei": 237734,

              "Ghostbusters": 44678}


print (phone_book)

Sets

Sets are used to store multiple items in a single variable. Set is one of 4 built-in data types in Python used to store collections of data, the other 3 are ListTuple, and Dictionary, all with different qualities and usage. A set is a collection which is both unordered and unindexed.

For Example:

thisset = {"apple", "banana", "cherry"}

print(thisset)

Are ready to begin your Python journey! There are many offline compilers and online compilers available. Logical think and constant practice will improve your Python skills and make you an expert. 

Happy Coding!


Best Time to Post on Instagram

 Best Time to Post on Instagram

So what’s your handle! That is the new millennial lingo that is the primary focus on most of the millennials today. Handle – a term used to recognise for the profile on Instagram – the identity. 

Instagram is a photo and video sharing social networking platform which is currently owned by Facebook. Over the past few years Instagram has gained tremendous popularity among people across all ages and regions -the millennials popular platform. 

Instagram was acquired by Facebook in 2012. From its launch Instagram has been one of the most sought-after platforms for sharing, advertising, and influencing the market. Companies/Individuals also use this for their advertising and promotion and have found it very beneficial. 

Influencers are the ones who have gained popularity in the social platforms through various forums, having a huge number of followers and whose recommendation are widely followed. Influencers endorsement of products/services is a popular method of advertising.

So, when should we post on Instagram, what days are good and what time is the best time to post that will enable maximum reach? 

Extensive research/studies is conducted by individuals and by corporates analysing the best time for engagement in Instagram. 

Best time to Post on Instagram

Posting your content at the right time and in the right form will gain a lot of traction from the audience. Generally best time to post on Instagram is around lunch i.e., 12.00 pm – 3.00 pm and evening 7pm-9pm.

Best time to post on Sunday

Sunday was considered the worst time to post. Weekends most of them indulge in outdoor activities or spend time with their families or travel. The time they spend on their phones and on social media is considerably less compared to the other days. Recent research has shown that engagement on Sunday has changed. Usually Sunday evening is considered a time where people wrap up their weekend and start to plan for the week. The best window to post on Sunday is 7am, 8am, and 4pm EST. 

Best time to post on Monday 

Monday blues are real and hit most of us starting Sunday evening. The first day of the week is usually when most of the weeks schedules and planning is done. The best interval to post on Instagram on Monday is 6am, 10am, and 10pm EST. 

Best time to post on Tuesday 

Tuesday: 2am, 4am, and 9am EST is considered a good time to post on Tuesday. During this time engagement is the maximum and so is the reach. 

Best time to post on Wednesday

7am, 8am, and 11pm EST are the best times to post on Wednesday per some of the surveys and analysis. Mid of the week is usually when the estimation of the rest of the week and how it will end will be evident. Based on the situation either people may have more time or will be constrained to finish deadlines/work. 

In short, the key to having massive engagement is creating compelling content, assessing the best time for reach, and scheduling it. 

The general guideline on the best time to post on various days are :

Monday: 6am, 10am, and 10pm EST.

Tuesday: 2am, 4am, and 9am EST.

Wednesday: 7am, 8am, and 11pm EST.

Thursday: 9am, 12pm, and 7pm EST.

Friday: 5am, 1pm, and 3pm EST.

Saturday: 11am, 7pm, and 8pm EST.

Sunday: 7am, 8am, and 4pm EST.


The best time to post is country /location specific. Basis the geographical audience that need to be engaged the timings must be altered accordingly and the content should be attractive and appealing. 


There is no perfect time or a best time, there is only a window of the best time that can be used for audience engagement in Instagram. The variables are too many and the dynamics keep changing rapidly. 


There is no prescribed one time or one day of the week. By keeping abreast with the surveys, the trends, the studies we can arrive at the popular times and day of the week. 


The World searched how to help more than ever

 The World searched how to help more than ever

The world shrunk has with technology and with information available at fingertips we live in a world that is connected. Internet is the friend and guide that we look for answers. 

2020 was an unprecedented year, uncertainty, helplessness, and fear gripped the whole world. People were looking for answers and information on various things. Google released the 2020 edition of its annually “Year in search” which lists the most popular words and topics searched around the world in its search engine in the 12 months of 2020. 

While looking at the words the searches reveal the anxiety and fear people had in the year 2020. This lists down the most popular voice related and word searches in the year 2020. 

In 2020, Covid-19 related searches was in the forefront and one of the most searched words on this was “Why is it called Covid-19?”. “Why” was also the most searched word along with Covid-19. 

Interestingly another word that shared the stage along with “Why is it called Covid-19?” and “why” is the word “help” and “how to help” more than ever. Google trends. “Insomnia” was also searched more in 2020 due to the uncertainty and fear that the pandemic created among all. 

In addition, the pandemic brought out the best in some people. The efforts of the doctors, front line workers, the service providers during the time when most of us stayed home was acknowledged by people across the world. 

The words “how to help” was also searched, followed by drivers, doctors, nurses, healthcare providers etc. They wanted to thank and show their gratitude by helping them in their own way. These were the people who worked tirelessly during the pandemic, they put others welfare before theirs. People wanted to show their gratitude to these tireless warriors and appreciate their efforts. So, they searched for the related words. They also wanted to help small and medium business owners who were affected during the pandemic due to the lockdown.

High search trends also include "how to volunteer," "how to help the community," "how to help the elderly," and "food donation." The world did not lose its compassion during the stressful time caused by the pandemic. Searches for “how to help” was higher than ever, the world was wanting to help the workers, Beirut, the Australia fires, Black lives matter etc among the top searches. 

While the pandemic took a lot of lives, calamities destroyed houses, wildlife suffered, nature perished etc. Some humans displayed their worst side while a lot more empathised, understood, stood for a cause, and helped each other in the true spirit of humanity.

Google showed us the mood and thoughts of the people around the world in 2020. The search data published showed that people care for each other and wanted to do their bit to help others. It showed the resilience and the strength of humanity.  

Here are Google’s Top 10 trending searches:

  1. Election results

  2. Coronavirus

  3. Kobe Bryant

  4. Coronavirus update

  5. Coronavirus symptoms

  6. Zoom

  7. Who is winning the election

  8. Naya Rivera

  9. Chadwick Boseman

  10. PlayStation 5


Here are Google’s Top 10 news searches:

  1. Coronavirus

  2. Election results

  3. Iran

  4. Beirut

  5. Hantavirus

  6. Stimulus checks

  7. Unemployment

  8. Tesla stock

  9. Bihar election result

  10. Black Lives Matter


Here are Google’s Top 10 TV shows searched:

  1. Tiger King

  2. Big Brother Brasil

  3. Money Heist

  4. Cobra Kai

  5. The Umbrella Academy

  6. Emily in Paris

  7. Ozark

  8. The Queen’s Gambit

  9. Outer Banks

  10. Locke & Key