SlideShare a Scribd company logo
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 chapter-04(Computational Thinking).pptx

Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++
KurdGul
 
PDLC.pptx
PDLC.pptxPDLC.pptx
PDLC.pptx
marysj3
 
Programming of c++
Programming of c++Programming of c++
Programming of c++
Ateeq Sindhu
 
IRJET- Recruitment Chatbot
IRJET- Recruitment ChatbotIRJET- Recruitment Chatbot
IRJET- Recruitment Chatbot
IRJET Journal
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
Prof. Erwin Globio
 
1.Basic_Syntax
1.Basic_Syntax1.Basic_Syntax
1.Basic_Syntax
Mohamed Essam
 
Python basic syntax
Python basic syntaxPython basic syntax
Python basic syntax
Mohamed Essam
 
Teaching of computer programming
Teaching of  computer programmingTeaching of  computer programming
Teaching of computer programming
marpasha
 
251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf
Abdulkadir Jibril
 
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
Asst.prof M.Gokilavani
 
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
GOWSIKRAJAP
 
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
Mansi 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 algorithms
Praveen M Jigajinni
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
Alok 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.pdf
MarilouANDERSON
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
ssusera8c91a
 
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
VisionAcademyProfSac
 

Similar to chapter-04(Computational Thinking).pptx (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

Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 

chapter-04(Computational Thinking).pptx

  • 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