Python Session
Python Session
Python is said to have succeeded is ABC Programming Language, which had the interfacing
with the Amoeba Operating System.
Python is derived from many other languages, including ABC, Modula-3, C, C++,Algol-68,
SmallTalk, and Unix shell and other scripting languages
Here interesting fact is- Python is named after the BBC TV comedy show Monty
5. Open Source Visit python.org🧠 Show that anyone can use/modify it freely.
1 Easy to Learn Like learning English – you can read and understand Python easily
2 Beginner Friendly Great for school projects, you can write your first program in just a few lines
3 Huge Community Support You’ll find help easily online (YouTube, forums) just like getting homework help
4 Free and Open Source You don’t need to pay – just like downloading free apps
5 Runs on All Platforms Works on Windows, Mac, Linux – like using WhatsApp on both Android and iPhone
7 Large Library Support Like a toolbox with ready-made tools (e.g., for math, graphics, internet)
8 Job Oriented Helps you prepare for future tech jobs (web dev, AI, data science)
9 Easy to Connect with Other Tech You can use it with Excel, internet, databases – like connecting phone to TV
10 Fast Prototyping Quickly test ideas, like sketching a rough drawing before making a final model
6. Advantages of Python:
Advantage Description Real-Time Example Scenario
Easy to Learn and Read Simple syntax and English-like code Writing a program to calculate student marks easily
Quick to Write and Execute Immediate feedback from running code Testing a calculator app during class
Huge Community and Resources Lots of tutorials, forums, and libraries available Finding solutions on Stack Overflow for a coding error
Supports Multiple Paradigms Procedural, OOP, functional programming Creating a student management system using classes
Great for Small and Big Projects Scales from simple to complex projects Building a simple quiz game or a basic website
Prepares for Advanced Technologies Foundation for AI, ML, robotics Learning basics to later explore creating a chatbot
Encourages Problem-Solving Skills Focus on algorithms and logic Writing a program to find the largest number in a list
scanf("%d %d", &a, &b); cout << "Enter two integers: ";
cin >> firstNumber >> secondNumber;
sum = a + b;
sumOfTwoNumbers = firstNumber + secondNumber;
printf("Sum : %d", sum);
cout << firstNumber << " + " << secondNumber << " = " << sumOfTwoNumbers;
return(0);
return 0;
}
}
--------java program--------
--------python program--------
public class AddTwoNumbers {
num1 = 1.5; num2 = 6.3
public static void main(String[] args) {
sum = num1 + num2
int num1 = 5, num2 = 15, sum;
print('The sum of two numbers”, sum))
sum = num1 + num2;
System.out.println("Sum of these numbers: "+sum);
}
}
Top Companies Using Python
Company Industry / Use Case