SlideShare a Scribd company logo
1 of 16
XI
Computer Science (083)
Board : CBSE
Unit -2:
Computational Thinking & Programming-1
Chapter-04
Basics of Computational Thinking
Unit -2
Computational Thinking & Programming
Prepared by
Devender Kumar
PGT(Comp.Sc)
JNV PURI,ODISHA
BASICS OF COMPUTATIONAL THINKING
Computational Thinking (CT) is a
problem solving process that includes a
number of characteristics and
dispositions. CT is essential to the
development of computer applications,
but it can also be used to support
problem solving across all disciplines,
including the humanities, math, and
science. Students who learn CT across
the curriculum can begin to see a
relationship between academic subjects,
as well as between life inside and outside
of the classroom.
BASICS OF COMPUTATIONAL THINKING
The Principles of Computational Thinking
The Principles of Computational Thinking
These are key techniques that
will help you think computationally
through a complex problem
(challenge, or task) before writing a
single line of code.
1
.
Decomposition
2
.
Abstraction
3
.
Pattern Recognition
4
.
Algorithm Design
The Principles of Computational Thinking
1. Decomposition
It is the breaking down a complex problem, data or
process into smaller, more manageable parts. In other
words the process of breaking down a big problem into a
set of smaller sub-process in order to understand a
problem or situation better, is known as decomposition.
For example:-
*Writing an essay is a complex task that can be broken
down into smaller task such as developing a thesis,
gathering evidence, and creating a bibliography page.
* Writing a computer program by determining a well-
defined series of small steps(modules) to solve the
problem or achieve a desired outcome
The Principles of Computational Thinking
2. Abstraction
Abstraction or Data Abstraction refers to focusing on
information relevant to a context/problem and
suppressing other details. Abstraction involves:-
Recognizing the context
Identifying the information relevant to the context
For example:-
*When we write a book report, we summarize and
discuss only theme or key aspects of the book, not each
context of book it is abstraction
* A calculator program only shows the numbers and
operators/functions buttons to user without giving details
of algorithm/program under it.
The Principles of Computational Thinking
3. Pattern Recognition
It refers to observing or looking for similarities or patterns among and
within small, decomposed problems; the indentified patterns help
solve more complex problems. It involves the following:-
Identifying similarities or common differences that lead us to
shortcuts.
 Using indentified shortcuts, mapping problem characteristics to
possible solutions.
*While driving on roads, the driver look for the patterns in traffic to
decide whether to switch lanes.
* Pattern recognition is required when categorizing rocks as either
igneous, metamorphic, or sedimentary.
The Principles of Computational Thinking
4. Algorithm Design
An algorithm is a sequence of steps that solves a problem by working
on some input data and producing desired outcomes(effective
solution). Algorithm design involves both creation and execution of
an algorithm.
For example:-
=>In programming algorithm can be:-
1. Decide the input variables.
2. Assign the value to the variables.
3. Checkout the conditions that can be apply on the variables.
4. Check True and False value of the condition
5. Perform operations on True and False values.
6. Exit the program.
=>In Daily Life when cook writes a recipe for a dish, he or she is
creating an algorithm that others can follow to replicate the dish.
PYTHON- AN PROGRAMMING LANGUAGE
Definition:-
The Python Language came in to existence in early 1990’s. It is not so
much popular such as C,C++,JAVA etc also it is not perfect for every
type of applications yet it has many advantages:-
1. Easy to use OO(Object Oriented) Language.
2. Expressive Language
3. Interpreted Languages
4. Cross-Platform Language
5. Free and Open Source
6. Variety of Usage/Applications
Some Minuses of Python are:-
1.Not the Fastest Language
2. Lesser Libraries than C,JAVA, Perl
3. Not Strong on Type-Binding(e.g If you declare variable as integer
but later on it can store string value in it.)
4. Not easily convertible From python to any other language.
PYTHON- AN PROGRAMMING LANGUAGE
Why it is called Python?
*When Mr. Guido van Rossum began implementing Python,
He was also reading the published scripts from
“Monty Python's Flying Circus”, a BBC comedy series from the
1970s. Van Rossum thought he needed a name that was
short, unique, and slightly mysterious, so he decided to call
the language Python
*Python is a widely used general-purpose, high level
programming language. It was created by Guido van Rossum
in 1991 and further developed by the Python Software
Foundation. It was designed with an emphasis on code
readability, and its syntax allows programmers to express
their concepts in fewer lines of code.
PYTHON- AN PROGRAMMING LANGUAGE
Working In Python
The python comes with Python Interpreter, Python IDLE(Integrated
Development Environment) and pip (package installer). To work in
Interactive as well as script mode, you need to open Python IDLE.
Steps to Open Python IDLE:-
Click on Start Button->All Program->Python->IDLE(python 3.8 ,32 bit)
It will open the following window:-
PYTHON- AN PROGRAMMING LANGUAGE
Writing a Program
'''PYTHON PROGRAM TO INPUT FIVE SUBJECT
AND FINDOUT THE TOTAL OF FIVE SUBJECTS''‘
e=int(input("ENTER VALUE OF FIRST SUB: "))
m=int(input("ENTER VALUE OF SECOND SUB: "))
s=int(input("ENTER VALUE OF THIRD SUB: "))
ss=int(input("ENTER VALUE OF FOURTH SUB: "))
c=int(input("ENTER VALUE OF FIVE SUB: "))
t=e+m+ss+c
print("The total mark is = ",t)
PYTHON- AN PROGRAMMING LANGUAGE
Output of the Program
ENTER VALUE OF FIRST SUB: 50
ENTER VALUE OF SECOND SUB: 70
ENTER VALUE OF THIRD SUB: 80
ENTER VALUE OF FOURTH SUB: 90
ENTER VALUE OF FIVE SUB: 60
The total mark is = 270
THANK YOU

More Related Content

Similar to Basics of Computational Thinking in Python (38

Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++KurdGul
 
PDLC.pptx
PDLC.pptxPDLC.pptx
PDLC.pptxmarysj3
 
Programming of c++
Programming of c++Programming of c++
Programming of c++Ateeq Sindhu
 
IRJET- Recruitment Chatbot
IRJET- Recruitment ChatbotIRJET- Recruitment Chatbot
IRJET- Recruitment ChatbotIRJET Journal
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer ProgrammingProf. Erwin Globio
 
Teaching of computer programming
Teaching of  computer programmingTeaching of  computer programming
Teaching of computer programmingmarpasha
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfAsst.prof M.Gokilavani
 
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVINGGOWSIKRAJAP
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
 
Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithmsPraveen M Jigajinni
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5Alok Jain
 
python workshop(one of the 15 chapters)
python workshop(one of the 15 chapters)python workshop(one of the 15 chapters)
python workshop(one of the 15 chapters)Mehul shah
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdfMarilouANDERSON
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfVisionAcademyProfSac
 

Similar to Basics of Computational Thinking in Python (38 (20)

Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++
 
PDLC.pptx
PDLC.pptxPDLC.pptx
PDLC.pptx
 
Programming of c++
Programming of c++Programming of c++
Programming of c++
 
IRJET- Recruitment Chatbot
IRJET- Recruitment ChatbotIRJET- Recruitment Chatbot
IRJET- Recruitment Chatbot
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
1.Basic_Syntax
1.Basic_Syntax1.Basic_Syntax
1.Basic_Syntax
 
Python basic syntax
Python basic syntaxPython basic syntax
Python basic syntax
 
INTERNSHIP REPORT.docx
 INTERNSHIP REPORT.docx INTERNSHIP REPORT.docx
INTERNSHIP REPORT.docx
 
Teaching of computer programming
Teaching of  computer programmingTeaching of  computer programming
Teaching of computer programming
 
251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
 
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
python workshop(one of the 15 chapters)
python workshop(one of the 15 chapters)python workshop(one of the 15 chapters)
python workshop(one of the 15 chapters)
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdf
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 

Recently uploaded (20)

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 

Basics of Computational Thinking in Python (38

  • 1. XI Computer Science (083) Board : CBSE Unit -2: Computational Thinking & Programming-1 Chapter-04 Basics of Computational Thinking
  • 2. Unit -2 Computational Thinking & Programming Prepared by Devender Kumar PGT(Comp.Sc) JNV PURI,ODISHA
  • 4. Computational Thinking (CT) is a problem solving process that includes a number of characteristics and dispositions. CT is essential to the development of computer applications, but it can also be used to support problem solving across all disciplines, including the humanities, math, and science. Students who learn CT across the curriculum can begin to see a relationship between academic subjects, as well as between life inside and outside of the classroom. BASICS OF COMPUTATIONAL THINKING
  • 5. The Principles of Computational Thinking
  • 6. The Principles of Computational Thinking These are key techniques that will help you think computationally through a complex problem (challenge, or task) before writing a single line of code. 1 . Decomposition 2 . Abstraction 3 . Pattern Recognition 4 . Algorithm Design
  • 7. The Principles of Computational Thinking 1. Decomposition It is the breaking down a complex problem, data or process into smaller, more manageable parts. In other words the process of breaking down a big problem into a set of smaller sub-process in order to understand a problem or situation better, is known as decomposition. For example:- *Writing an essay is a complex task that can be broken down into smaller task such as developing a thesis, gathering evidence, and creating a bibliography page. * Writing a computer program by determining a well- defined series of small steps(modules) to solve the problem or achieve a desired outcome
  • 8. The Principles of Computational Thinking 2. Abstraction Abstraction or Data Abstraction refers to focusing on information relevant to a context/problem and suppressing other details. Abstraction involves:- Recognizing the context Identifying the information relevant to the context For example:- *When we write a book report, we summarize and discuss only theme or key aspects of the book, not each context of book it is abstraction * A calculator program only shows the numbers and operators/functions buttons to user without giving details of algorithm/program under it.
  • 9. The Principles of Computational Thinking 3. Pattern Recognition It refers to observing or looking for similarities or patterns among and within small, decomposed problems; the indentified patterns help solve more complex problems. It involves the following:- Identifying similarities or common differences that lead us to shortcuts.  Using indentified shortcuts, mapping problem characteristics to possible solutions. *While driving on roads, the driver look for the patterns in traffic to decide whether to switch lanes. * Pattern recognition is required when categorizing rocks as either igneous, metamorphic, or sedimentary.
  • 10. The Principles of Computational Thinking 4. Algorithm Design An algorithm is a sequence of steps that solves a problem by working on some input data and producing desired outcomes(effective solution). Algorithm design involves both creation and execution of an algorithm. For example:- =>In programming algorithm can be:- 1. Decide the input variables. 2. Assign the value to the variables. 3. Checkout the conditions that can be apply on the variables. 4. Check True and False value of the condition 5. Perform operations on True and False values. 6. Exit the program. =>In Daily Life when cook writes a recipe for a dish, he or she is creating an algorithm that others can follow to replicate the dish.
  • 11. PYTHON- AN PROGRAMMING LANGUAGE Definition:- The Python Language came in to existence in early 1990’s. It is not so much popular such as C,C++,JAVA etc also it is not perfect for every type of applications yet it has many advantages:- 1. Easy to use OO(Object Oriented) Language. 2. Expressive Language 3. Interpreted Languages 4. Cross-Platform Language 5. Free and Open Source 6. Variety of Usage/Applications Some Minuses of Python are:- 1.Not the Fastest Language 2. Lesser Libraries than C,JAVA, Perl 3. Not Strong on Type-Binding(e.g If you declare variable as integer but later on it can store string value in it.) 4. Not easily convertible From python to any other language.
  • 12. PYTHON- AN PROGRAMMING LANGUAGE Why it is called Python? *When Mr. Guido van Rossum began implementing Python, He was also reading the published scripts from “Monty Python's Flying Circus”, a BBC comedy series from the 1970s. Van Rossum thought he needed a name that was short, unique, and slightly mysterious, so he decided to call the language Python *Python is a widely used general-purpose, high level programming language. It was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was designed with an emphasis on code readability, and its syntax allows programmers to express their concepts in fewer lines of code.
  • 13. PYTHON- AN PROGRAMMING LANGUAGE Working In Python The python comes with Python Interpreter, Python IDLE(Integrated Development Environment) and pip (package installer). To work in Interactive as well as script mode, you need to open Python IDLE. Steps to Open Python IDLE:- Click on Start Button->All Program->Python->IDLE(python 3.8 ,32 bit) It will open the following window:-
  • 14. PYTHON- AN PROGRAMMING LANGUAGE Writing a Program '''PYTHON PROGRAM TO INPUT FIVE SUBJECT AND FINDOUT THE TOTAL OF FIVE SUBJECTS''‘ e=int(input("ENTER VALUE OF FIRST SUB: ")) m=int(input("ENTER VALUE OF SECOND SUB: ")) s=int(input("ENTER VALUE OF THIRD SUB: ")) ss=int(input("ENTER VALUE OF FOURTH SUB: ")) c=int(input("ENTER VALUE OF FIVE SUB: ")) t=e+m+ss+c print("The total mark is = ",t)
  • 15. PYTHON- AN PROGRAMMING LANGUAGE Output of the Program ENTER VALUE OF FIRST SUB: 50 ENTER VALUE OF SECOND SUB: 70 ENTER VALUE OF THIRD SUB: 80 ENTER VALUE OF FOURTH SUB: 90 ENTER VALUE OF FIVE SUB: 60 The total mark is = 270