1 || Introduction of Python, Scope || Basic python course
Hello, we are starting new Course of Python, Specially for those who don't have any knowledge, will start from scratch, All the concept will be discussed and also the notes are provided. You can visit our YouTube @thecobox to saw all videos and other technical videos.
Python is a general-purpose high-level programming language. Python is used in artificial intelligence and robotics because it is a general-purpose high-level programming language.
Who developed python?
Guido van Rossum developed python in 1989 while working at a national research institute in the Netherlands. but officially python was made available for the public on 20th Feb 1991.
Python is highly recommended as the first programming language. If you want to learn any programming language then the best choice is python.
Why is python a highly recommended language because you are coming from java? The biggest advantage of python is we can write the program easily with less code. suppose in other languages we use 20 to 30 lines of code but in python 2 to 3 lines of code is used concisely and very less code makes for a suitable application size. all those looking here to discuss we are going to land a wonderful programming language.
We are going to land any programming first program is the hello world program.
If I want to print the hello world program in java is like this
public class helloworld
{
Public static void main(string[ ] args)
{
system .out .println(“helloworld”);
}
}
This is the code we are required to write in java just to print hello world.
Very difficult to learn java
If we want to write a program in C language
#include
Void main()
{
print(“hello world”);
}
But in python, we can write hello world programs. How many lines of code do we write? only one print(“Hello world”)
So learning C, learning Java, and python is very easy? Python, python is very easy.
If I want to print the sum of two numbers? how you can able to write in java is
public class SumOfTwo
{
Public static void main(string[ ]args)
{
int a , b :
a = 10;
b = 20;
system .out.print(a+b);
}
}
In python how many lines of code are we required in python.
A,b = 10 ,20
print(a+b)
30
This type of code is possible in Java but is it possible in C? This is the beauty of python. It is possible in python. this type of code is only in python. We can write the big big big complex code we know, and write the small code . Any explanation is required ??
As we know in c and java languages we declare the variable type that's a language called statically typed language. but in python, no variable is assigned because python is a dynamically typed language. python calls any datatype internally. Do not assign any variable initially a = 10
type(a)
Output :
Why Python?
- Functional programming language from C
- OOP from C++
- Scripting languages features from Perl and shell script
- Modular programming features from Modula - 3
Where can we use python?
- Desktop app
- web application >> Django
- Database application
- For networking applications
- Games
- Data analysis
- Machine learning
- Ai
- For IoT applications
Which companies use python?
- Youtube’
- Dropbox
- NASA