Day 1 Intro to Python
Day 1 Session 1
Before beginning Python we should first address some questions that generally arouse in first time programmers in Python.
Question: Who can learn Python
Answer: Anyone can learn python but from experience, anyone in the class/grade of 6 and above can learn python. While technically anybody can learn, its best preferred to learn starting in 6th grade and you can grasp concepts than in lower grades.
Question: Is programming easy or not?
Answer: Programming is in fact easy. To grasp and understand the concepts of any programming language is not that hard. Now there are 3 things to consider, willpower, determination, and hard work. You need willpower in order to conquer the moments in which you have difficult times, such as trying to find the bug or mistake in the code; also having determination will make you determined to finish and be able to do the programming; and finally hard work, without practice, no one can succeed. Some people thought that 1+1=3 until they practiced and then knew that 1+1=2.
Question: Should you be scared of programming (includes any type of programming)?
Answers: No. Programming is nothing to be scared of. First programming is just a bunch of code and programming languages are basically, well languages. There are many things that people are scared of which are non-existent and they shouldn't even worry. Same goes with programming, think of programming as a language and think as if it was useful. That's why you shouldn’t be scared of programming.
Now to Answer some questions in Python
Question: What is python?
Answer: Python is a high level, object oriented, interpreted programming language.
So what do these terms above mean?
High level programming language is any programming language that makes the development of the programs to be programmer friendly, a language to simplify the computer programming, and
Who introduced Python?
Answer: Python was first introduced by Van Guido Rossum in the Netherlands back in February 20, 1991.
What are some of the perquisites in order to learn python?
Answer: No experience is required to learn python. Python has features which makes the programming easy and simple to learn.
Why is Python especially popular with the IT industry?
Answer : Its because of the features and some of the areas that python is used are in:
1.Data Science
Companies like Splunk, Oracle, Cloudera
2.Data Analytics
Companies like SAP, Qlik, Tableau
3.Machine Learning
Companies like Iflexion, Rapid Miner, SAS| x,ai
4.AWS
Company that mostly uses it is AWS
5.AI
Companies like Grammarly
6.Devops
7.Web app development
Companies like BoTree Technologies, Netguru, Mindfire Solutions Fusion Informatics, Selleo
8.Mobile app Development
Companies like Mercury Development, Rightpoint, RnF Technologies
9.Robotics
Companies like AEye, AIBrain, Blue River Tech
10.Testing
Companies like Capgemini, HCL, RTTS
11.IOT
Companies like Sherpa
12. Etc and soon on...
/Why is python being used and integrated with many area/sectors?
Answer: Python is being used and integrated with many areas and sectors due to following features:
1. Its a very easy programming language
Since it is a high level language which is a programmer friendly language that
For instance when writing code in languages such java or C#.net you have to start like this in order to even write/print out a Hello World Statement:
class program
{
static void main(string args[])
{
->one line code
{
{
to approximately like it and you have to start with main() method
Even to declare a variable in C# and java you have to end with semi colon and have to declare what type of data it is like if it's string or float.
Example:
int a=100;
int a=09210983210192092130;
int a=02139081290747182397809721098730981278937981027321:
In python, the following above isn't necessary and all you to to do is have the variable name and have some value:
Example:
x=100
y=200
z=300
print(x) = o/p = 100
print(y) = o/p = 200
print(z) = o/p = 300
In python, we can find out the type of value which is given with this command:
type
Lets do an example:
a = "apple"
type(a)
o/p : string
Python is a case sensitive language where assuming that we use the previous example and instead of printing (a) we did (A), it would give us error message because we didn't define A before.
Python is a general purpose language which is used for applications and such for applications.
Python is cross platform and can run on any operating system as its usually built into Linux operating systems and Windows, so on.
Python is open structured programming language which means its free software which we can download from the website which is Welcome to Python.org.
Python is procedure oriented programming language as well as object oriented programming language. Python is a collection of functions without having any classes due to that reason it is called as object oriented programming language.