G9_Demo_TeacherCopy
Demo Class: Introduction to Coding
AND
AND
Screen Tapped
Screen Tapped
Mouth Open
Mouth Closed
Movement
Enabled
+1
-1
Reset
Start Game
Stop Game
Mouth Open
Mouth Closed
If-Then-Else
Condition
Then
Else
Counter
Increase
Decrease
Jump
Looped
And (+1)
And (-1)
If-Then-Else
Condition
Then
Else
True/False
True/False
?
TA: Teacher Activity
SA: Student Activity
SAA: Student Additional Activity
Slide No. | Topic |
---|---|
3 | Pre-Requisites |
4 | Software installation steps |
19-29 | TA Code solution + Coding steps |
37 | Links table |
PREPARATION & REFERENCE
CLASS STRUCTURE
Activity Flow | Slide No. | Topic | Time |
---|---|---|---|
5 | Ice-Breaker activity | 1 min | |
7-8 | Introduction to Programming & Python | 4 mins | |
TA1 | 9-12 | Breakout game-coloring | 7 mins |
SA1 | 11 | SA - Color calculator | done with TA1 |
14-17 | Python and data science | 3 mins | |
TA2 +SA2 | 18-29 | All-rounder analysis | 7 mins |
31 | What next?- Introduction to course | 2 mins | |
WRAP-UP | 32-34 | Quiz | 1 min |
Pre-Requisites
FOR TEACHER
-
Computer with Internet connection.
-
Latest browser installed.
-
"pygame" package installed.
-
Spyder IDE installed.
FOR STUDENTS
-
Computer with Internet connection.
-
Latest browser installed.
Software Installation Steps
1. Anaconda & Prerequisite Download Instructions:
2. Spyder IDE Download Instructions:
What will you do if you have a superpower?
Are you all ready to start today's class?
Let's move ahead
A programming language is a language understood by the computer.
Hello!
01010011
What is a Programming Language?
Why should we learn Python?
Web Applications
Artificial Intelligence (AI)
Data Analysis and Prediction
Game Development
Let's see a game created with Python
Let's change the color of the bricks
B
(Red, Green, Blue)
Red color -> (255, 0, 0)
Green color -> (0, 255, 0)
Blue color -> (0, 0, 255)
Code to complete the activity
GREAT!
Let's learn more applications of Python
IPL auction event
Yes, the chart shows he's breaking all kinds of records.
He is a great batsman.
IPL auction event
Representation of a table
Columns or Features
Rows or Observations
Values or Data points
Running the block of code in Jupyter (myBinder.org)
Link for the detailed code explanation:
Step 1: Install the libraries required for performing the analysis.
Step 2: Load the data and display it in a tabular format.
Step 3: Keep data for the year 2019 only.
Step 4: Remove the columns that are not required.
Step 5: Replace the "-" signs with "0" in the data.
Steps 6, 7: Checking the data type of each column. Changing the the data type to numeric data for the required columns.
Step 8: To find the all-rounders, select the players who have done batting and bowling both in at least six innings.
Step 9: Draw a bar graph of the "Batting Average" for each player.
Step 10: Draw a bar graph of "Bowling Average" for each player.
Output:
What's Next?
Chatbot
Space Invaders
Flappy Bee
Computer Vision
Portfolio Website
Which one of the following is the correct code for blue color?
(0, 0, 255)
(0, 255, 0)
(0, 0, 0)
Q.1
(255, 255, 255)
A
C
B
D
A
(0, 0, 255)
Color is given in (red, green, blue) format. So the code for blue will be (0,0,255).
Which of the below-mentioned tasks can be done using Python?
Data Analysis
Game development
Artificial Intelligence
Q.2
All of the above
A
C
B
D
D
All of the above
Python can do all of the tasks mentioned using the vast set of pre-written code present in Python.
Links Table
Activity | Activity Name | Link |
---|---|---|
Teacher Activity 1 | Breakout Game | |
Teacher Activity 2 | Analysis- All rounder | |
Teacher Activity 3 | Analysis- All rounder Explaination | |
Teacher Activity 4 | Anaconda installation guide | |
Teacher Activity 5 | Spyder installation guide | |
Student Activity 1 | RGB Calculator | |
Student Activity 2 | Analysis- All rounder |
Copy of G9_Demo
By Sanjukta Bhattacharya
Copy of G9_Demo
- 175