0% found this document useful (0 votes)
5 views7 pages

Working With Files-2

The lesson focuses on teaching 7th-grade students how to work with files in Python, including reading and writing data. Students will learn to create and open files, understand different file types, and evaluate the importance of file operations in programming. The lesson includes group activities, discussions, and practical tasks to reinforce the concepts learned.

Uploaded by

marvel8676
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views7 pages

Working With Files-2

The lesson focuses on teaching 7th-grade students how to work with files in Python, including reading and writing data. Students will learn to create and open files, understand different file types, and evaluate the importance of file operations in programming. The lesson includes group activities, discussions, and practical tasks to reinforce the concepts learned.

Uploaded by

marvel8676
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Section IV.

Programming Algorithms in Python School: Seitzhan School

Date:15.01.2024 FULL NAME. teachers: Asylkhan Usipbekov


Class: 7 Number of people present: Absent:
Lesson topic 4.1. Working with files
Learning objectives to be 7.3.3.1 - read and write a file in the Python programming language (python)
achieved in this lesson(link
to tutorial)
program)
Level of thinking
skills Knowledge and Understanding. Application

Objectives of the lesson All students:


learn how to create and open files.
Most students:
Consider two types of files in Python.
Some students:
read and write data from a file in Python
Evaluation criteria Do the analysis of program codes of tasks.
Using the methods of reading and writing data to a file, they create the text of a
simple task. During programming, evaluate the importance of reading data from a
file
Language goals Subject vocabulary and terminology:
Jazu → Write →
Write Оқу →
Read → Read
Print → Print → Print
Input → Input
Toad → Closed →
close File → File
→ File
Questions for dialogue and written work:
● How can one read and write a file in the Python programming language?

● How did you perform data entry in programs written in Python?

● Do you know of any other methods for entering the values of variables while the
program is running?
● What is the difference between using commandswrite() andprint()?

● What is the difference between using commandsread() andinput()? Justify your answer.

● Why after opening a file for writing it is necessary to use the commandclose()?

● What are the differences between entering data from a file and entering it from the
keyboard when a program is running?
Instilling values Reflections nurture a creative soul, functional literacy, ability to communicate and increased responsibility.
1. In accordance with the national idea "Mangilik El", the value and significance of the "Society of
General Labor" is being formed.
2. Collaboration: In the process of group work, friendships are formed, skills of cooperation and a
constructive attitude are developed, and critical thinking skills are formed.
3. Academic Integrity: Respects the ideas and opinions of others, i.e. adheres to the principles of
academic integrity.

4. Lifelong learning, the skills of Kazakhstani patriotism and civic responsibility are formed

Intersubject communications English and Russian


Previous Knowledge Have a general understanding of files
D
ur
in
g
th
e
cla
sse
s
Lesson Teacher actions Student activities Evaluation Resources
stages /
Time
Lesson start (ABOUT). Students are divided Sheets of paper
2 min. Organizing time: into three groups using
1. Greetings. the method
2. Students mark. "Count to three."
3. Creating a positive
psychological atmosphere.
4. Grouping.
Collective The teacher asks: In order to establish a Groups appreciate interactive board
work. – How can one read and write connection between the each other's work
Method a file in the Python previous and new lesson, with applause.
"Brainstorm". programming language? students answer questions.
– How did you perform get acquaintedwithtopic,
5 i data entry in programs lesson objectives and
written in Python? assessment criteria.
– Do you know of any Using the method
other methods for "Mosaic" sheets of paper
entering the values of are distributed to three
variables while the groups. Group members,
program is running? combining sheets of paper,
announce:
The first group - the
topic of the lesson,
the second group -
the goals of the
lesson,
Group III - lesson criteria.
Introduction to The teacher, in order to explain The students Textbook
the new lesson. the new section, conducts an work with the
5 min. introductory speech with textbook.
students.
For more information, the
teacher directs the students to
work with the textbook.
Organizes the analysis of Evaluation.Groups Textb
▪ Students explain
Middle of the program codes of tasks. applaud each other's ook,
lesson Questions to the groups: the reason for work. sheet
21 min And group: combining the A3,
Is it possible to combine the complete task code noteb
complete task code with the with the code to ooks
code for creating the input file create the input
in Figure 1 into one program (source) file into
code? Explain the reason. one program code.
II group:What would be the ▪ Determine the result of
result of removing the close()
removing the close ()
commands from the code in
commands from the
Figure 3?
program code in
III group:Is it possible to use
Figure 3.
the print() function instead of
the write() method in program ▪ Explain that the print()
code? Explain why. function can be used in
program code instead of
the write() method.
▪ Pupils in the course of
group discussion
understand the
information received in
the lesson
Gives the task to work in pairs Evaluation.students Computer
▪ When compiling
on practical work. Using the evaluate
methods of writing and a task, use the modes the work another
reading from a file, compose of the functionOpen() friend by
the text of a simple task. When ▪ They compose and applause.
composing a task, use the
modes of the functionOpen() present the text of the
problem, talking to each
on table 1.
other.
Students create a program
combining theoretical and
practical knowledge.
Students are asked to Each student shares Evaluation.Students
answer the following their individual do self-assessment
questions on their own: thoughts on the issue. with
Students appreciate the applause.
importance of working with .

– What is the importance of


reading data from a file
during programming?

Reflectio Consolidation of Answer questions Evaluation.The


nEnd of the lesson. teacher conducts the
the Asking final assessment,
lesson7 questions: using applause.
min – What is the difference
between using
commandswrite() andprint()?
– What is the difference
between using
commandsread() andinput()?
Justify your answer.
– Why after opening a file
for writing it is necessary to
use the commandclose()?
– What are the differences
between entering data from a
file and entering it from the
keyboard when a program is
running?
Homework The teacher explains the Students mark their
homework. homework and write
Repeat topics of last terms. in a notebook.
Read pages 40-41. Do Activity

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy