SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
“Teaching Computer Based Math
and Computer Science Using
Python”
Andrei CORLAT,
Doctor în matematică, Şef Catedra
Matematică şi Informatică, UnAŞM
Oxana GRAJDIANU,
UnAŞM
Teaching Mathematics
Teaching Computer Science
Young people consider themselves "digital natives"
because they can text and chat and play games, “but using
technologies doesn’t really make one a digital native or
fluent in technology.”
Mitch Resnick at TEDxBeaconStreet
Computer Based
Mathematics
Benefits of Programming for
learning Mathematics
“Learning to code means learning how to think creatively,
reason systematically and work collaboratively. And these
skills are applicable to any profession — as well as to
expressing yourself in
your personal life, too."
Mitch Resnick
Python as the first
programming language
● Simple
● Easy to Learn
● Free and Open Source
● High-level Language
● Portable
● Interpreted
● Object Oriented
● Extensible
● Embeddable
Peculiarities of Python
Programming Language
Position
Mar 2014
Position
Mar 2013
Delta in
position
Programming language Share in
Marc 2014
Twelve
month
trends
1 1 Java 26.9 % -0.5 %
2 2 PHP 13.5 % -1.5 %
3 4 Python 10.6 % +0.6 %
4 3 C# 10.5 % -0.1 %
5 5 C++ 8.8 % -0.5 %
6 6 C 8.1 % +0.2 %
7 7 Javascript 8.0 % +0 %
8 8 Objective-C 6.4 % +1.6 %
9 9 Visual Basic 3.1 % +0.3 %
10 10 Ruby 2.5 % +0 %
© 2014 Pierre Carbonnelle
Comparing Python to other
programming languages
The "Hello, world" program in Python is about as simple as it can get:
>>> print "Hello, world!"
Hello, world!
In Java, much more overhead is needed:
class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
}
Comparing Python to other
programming languages
The "Hello, world" program in Python is about as simple as it can get:
>>> print "Hello, world!"
Hello, world!
In Pascal Programming Language:
program HelloWorld;
begin
writeln('Hello World');
end.
Python in Schools
Python and Math is an approach to apply programming skills to solving
math problems. Here are the main objectives:
● Introduce programmers to solving math problems
using programming.
● Practice problem-solving skills
using programming.
● Introduce new skills and techniques
that increase the efficiency of programs.
Unlock the Power of
Computer with Python
There are two main advantages that programming a
computer has over doing the calculation yourself:
● Speed: computers can do more calculations in a
second than most will do in their lifetime.
● Repetition: computers do the same thing over and
over and never complain.
Gauss and Loops
>>> total = 0 #A variable storing our running total.
>>> for x in range(1,101): #Range(1,101) stops at 100.
total = total + x #Code inside a loop is indented.
>>> print(total)
5050
Randomness and Case
Statements
>>> import random
>>> flipResult = 0
>>> heads = 0
>>> tails = 0
>>> for flips in range(1,101):
flipResult = random.randint(1,2)
if (flipResult == 1):
print ("Heads") #Students like seeing the flip results.
heads = heads + 1
if(flipResult == 2):
print ("Tails")
tails = tails + 1
>>> print ("heads= %i" % heads)
>>> print ("tails= %i" % tails)
>>> print(heads/tails)
Randomness and Case
Statements - Output
Tails
Tails
Heads
Tails
Tails
Tails
Heads
Tails
Heads
Tails
Tails
Tails
Tails
Tails
Heads
Heads
Tails
Tails
Heads
Tails
Tails
Heads
Heads
Heads
Tails
Tails
Tails
Tails
Heads
Tails
Heads
Heads
Tails
Tails
Heads
Heads
Tails
Heads
Tails
Tails
Heads
Heads
Tails
Tails
Heads
Heads
Heads
Tails
Tails
Tails
Heads
Tails
Heads
Tails
Heads
Heads
Tails
Heads
Tails
Tails
Tails
Heads
Heads
Tails
Heads
Tails
heads = 45
tails = 55
0.8181818181818182

Contenu connexe

En vedette

Evaluation of online learning
Evaluation of online learningEvaluation of online learning
Evaluation of online learningAlaa Sadik
 
Design blue print
Design blue printDesign blue print
Design blue printMukut Deori
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1kvs
 
4. python functions
4. python   functions4. python   functions
4. python functionsin4400
 
Evaluation of learning resources
Evaluation of learning resourcesEvaluation of learning resources
Evaluation of learning resourcesDamian T. Gordon
 
Blueprint in education
Blueprint in educationBlueprint in education
Blueprint in educationKiran Kushwaha
 

En vedette (7)

Evaluation of online learning
Evaluation of online learningEvaluation of online learning
Evaluation of online learning
 
Design blue print
Design blue printDesign blue print
Design blue print
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
4. python functions
4. python   functions4. python   functions
4. python functions
 
Blueprint ppt
Blueprint pptBlueprint ppt
Blueprint ppt
 
Evaluation of learning resources
Evaluation of learning resourcesEvaluation of learning resources
Evaluation of learning resources
 
Blueprint in education
Blueprint in educationBlueprint in education
Blueprint in education
 

Similaire à Teaching Computer Based Math and Computer Science Using Python

Presentation on python
Presentation on pythonPresentation on python
Presentation on pythonwilliam john
 
W1-Intro to python.pptx
W1-Intro to python.pptxW1-Intro to python.pptx
W1-Intro to python.pptxNaziaPerwaiz2
 
Introduction to Data Science, Applications & Opportunities.pdf
Introduction to Data Science, Applications & Opportunities.pdfIntroduction to Data Science, Applications & Opportunities.pdf
Introduction to Data Science, Applications & Opportunities.pdfRamprakashSingaravel1
 
Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++KurdGul
 
Programming of c++
Programming of c++Programming of c++
Programming of c++Ateeq Sindhu
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Rr
 
Breast Cancer Prediction.pdf
Breast Cancer Prediction.pdfBreast Cancer Prediction.pdf
Breast Cancer Prediction.pdfSouravNaga2
 
Mastering python lesson1
Mastering python lesson1Mastering python lesson1
Mastering python lesson1Ruth Marvin
 
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...Dylan-Wu
 
Programming beyond cs
Programming beyond csProgramming beyond cs
Programming beyond csuditproject
 
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfLearn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfNemoPalleschi
 
python PPT Session 1.pptx
python PPT Session 1.pptxpython PPT Session 1.pptx
python PPT Session 1.pptxRobertHook14
 
Cmp2412 programming principles
Cmp2412 programming principlesCmp2412 programming principles
Cmp2412 programming principlesNIKANOR THOMAS
 
Nikhil Bagde Software Engineer
Nikhil Bagde Software EngineerNikhil Bagde Software Engineer
Nikhil Bagde Software EngineerNikhil Bagde
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam Gupta
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptxHaythamBarakeh1
 

Similaire à Teaching Computer Based Math and Computer Science Using Python (20)

Learning to code in 2020
Learning to code in 2020Learning to code in 2020
Learning to code in 2020
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
History Of C Essay
History Of C EssayHistory Of C Essay
History Of C Essay
 
W1-Intro to python.pptx
W1-Intro to python.pptxW1-Intro to python.pptx
W1-Intro to python.pptx
 
Introduction to Data Science, Applications & Opportunities.pdf
Introduction to Data Science, Applications & Opportunities.pdfIntroduction to Data Science, Applications & Opportunities.pdf
Introduction to Data Science, Applications & Opportunities.pdf
 
Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++
 
Programming of c++
Programming of c++Programming of c++
Programming of c++
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Breast Cancer Prediction.pdf
Breast Cancer Prediction.pdfBreast Cancer Prediction.pdf
Breast Cancer Prediction.pdf
 
Mastering python lesson1
Mastering python lesson1Mastering python lesson1
Mastering python lesson1
 
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...
MITx 6.00.1x Introduction to Computer Science and Programming Using Python - ...
 
Programming beyond cs
Programming beyond csProgramming beyond cs
Programming beyond cs
 
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfLearn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
 
python PPT Session 1.pptx
python PPT Session 1.pptxpython PPT Session 1.pptx
python PPT Session 1.pptx
 
Cmp2412 programming principles
Cmp2412 programming principlesCmp2412 programming principles
Cmp2412 programming principles
 
Nikhil Bagde Software Engineer
Nikhil Bagde Software EngineerNikhil Bagde Software Engineer
Nikhil Bagde Software Engineer
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
 
Python
PythonPython
Python
 

Dernier

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Dernier (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Teaching Computer Based Math and Computer Science Using Python

  • 1. “Teaching Computer Based Math and Computer Science Using Python” Andrei CORLAT, Doctor în matematică, Şef Catedra Matematică şi Informatică, UnAŞM Oxana GRAJDIANU, UnAŞM
  • 3. Teaching Computer Science Young people consider themselves "digital natives" because they can text and chat and play games, “but using technologies doesn’t really make one a digital native or fluent in technology.” Mitch Resnick at TEDxBeaconStreet
  • 5. Benefits of Programming for learning Mathematics “Learning to code means learning how to think creatively, reason systematically and work collaboratively. And these skills are applicable to any profession — as well as to expressing yourself in your personal life, too." Mitch Resnick
  • 6. Python as the first programming language ● Simple ● Easy to Learn ● Free and Open Source ● High-level Language ● Portable ● Interpreted ● Object Oriented ● Extensible ● Embeddable
  • 7. Peculiarities of Python Programming Language Position Mar 2014 Position Mar 2013 Delta in position Programming language Share in Marc 2014 Twelve month trends 1 1 Java 26.9 % -0.5 % 2 2 PHP 13.5 % -1.5 % 3 4 Python 10.6 % +0.6 % 4 3 C# 10.5 % -0.1 % 5 5 C++ 8.8 % -0.5 % 6 6 C 8.1 % +0.2 % 7 7 Javascript 8.0 % +0 % 8 8 Objective-C 6.4 % +1.6 % 9 9 Visual Basic 3.1 % +0.3 % 10 10 Ruby 2.5 % +0 % © 2014 Pierre Carbonnelle
  • 8. Comparing Python to other programming languages The "Hello, world" program in Python is about as simple as it can get: >>> print "Hello, world!" Hello, world! In Java, much more overhead is needed: class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!"); } }
  • 9. Comparing Python to other programming languages The "Hello, world" program in Python is about as simple as it can get: >>> print "Hello, world!" Hello, world! In Pascal Programming Language: program HelloWorld; begin writeln('Hello World'); end.
  • 10. Python in Schools Python and Math is an approach to apply programming skills to solving math problems. Here are the main objectives: ● Introduce programmers to solving math problems using programming. ● Practice problem-solving skills using programming. ● Introduce new skills and techniques that increase the efficiency of programs.
  • 11. Unlock the Power of Computer with Python There are two main advantages that programming a computer has over doing the calculation yourself: ● Speed: computers can do more calculations in a second than most will do in their lifetime. ● Repetition: computers do the same thing over and over and never complain.
  • 12. Gauss and Loops >>> total = 0 #A variable storing our running total. >>> for x in range(1,101): #Range(1,101) stops at 100. total = total + x #Code inside a loop is indented. >>> print(total) 5050
  • 13. Randomness and Case Statements >>> import random >>> flipResult = 0 >>> heads = 0 >>> tails = 0 >>> for flips in range(1,101): flipResult = random.randint(1,2) if (flipResult == 1): print ("Heads") #Students like seeing the flip results. heads = heads + 1 if(flipResult == 2): print ("Tails") tails = tails + 1 >>> print ("heads= %i" % heads) >>> print ("tails= %i" % tails) >>> print(heads/tails)
  • 14. Randomness and Case Statements - Output Tails Tails Heads Tails Tails Tails Heads Tails Heads Tails Tails Tails Tails Tails Heads Heads Tails Tails Heads Tails Tails Heads Heads Heads Tails Tails Tails Tails Heads Tails Heads Heads Tails Tails Heads Heads Tails Heads Tails Tails Heads Heads Tails Tails Heads Heads Heads Tails Tails Tails Heads Tails Heads Tails Heads Heads Tails Heads Tails Tails Tails Heads Heads Tails Heads Tails heads = 45 tails = 55 0.8181818181818182