Python Lecture-1
Python Lecture-1
LECTURE 1
Today’s Agenda
• Necessity Of Programming
• What Is Python ?
• Important Features
• Course Outline
What You Should Know ?
It is inspired by another
programming language called
ABC
Why was Python created ?
It is a non-profit organization
devoted to the growth and
enhancement of Python
language
Their website is
http://www.python.org
Where Is Python used ?
GUI
Web
Data Science
AI & ML
IoT
Hacking
GUI In Python
Udemy
Spotify
Mozilla
Dropbox
How it happens ?
How it happens ?
Machine learning is a
field of AI (Artificial
Intelligence) by using
which software
applications can
predict more accurate
outcomes based on
historical data.
Hackers generally
develop small scripts and
Python provides amazing
performance for small
programs
Why should I learn Python ?
Simple
Dynamically Typed
Robust
Cross Platform
Extensible
Huge Library
Simple
IN C
#include <stdio.h>
int main(){
printf("Hello Bhopal!");
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
System.out.println( "Hello Bhopal!" );
}
}
IN PYTHON
print('Hello Bhopal!')
Add 2 Nos
IN C
#include <stdio.h>
int main(){
int a=10,b=20;
printf(“Sum is %d”,a+b);
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
int a=10,b=20;
System.out.println( “Sum is “+(a+b));
}
}
IN PYTHON
a,b=10,20;
print(“Sum is”,a+b)
Swap 2 Nos
IN C
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN JAVA
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN PYTHON
a,b=10,20
a,b=b,a
Dynamically Typed
Dynamically Typed
IN C IN Python
int a;
a=10
a=10;
a=“Bhopal”; a=“Bhopal”
Robust
int arr[5];
int i;
for(i=0;i<=9;i++)
{
arr[i]=i+1;
}
Robust
In other words, we can take one code and run it on any machine,
there is no need to write different code for different
machines.