Session #01 - Installation of Python - IDLE, type and execute square, rectangle and triangle
Steps to download and install Python.
Step 1: Open a browser and go to python.org
Step 2: Hover your mouse on Downloads and click on the Python button
to download latest python
Step 3: Install the downloaded package by clicking on continue
and next with default settings
Step 4: Verify whether python is downloaded by searching for IDLE either in
windows search or mac search.
Step 5: Once you open IDLE, it should a prompt like this >>>
Step 6: To test a simple code.. you can type 3 + 5 and
press enter at the prompt. You should see 8.
Then your python is installed successfully.
------------------------
How do you create a python program?
Step 1: Click on File --> New File
Step 2: Type the first program in the editor
Step 3: Save the file in Documents --> ESOC43
Step 4: Execute the program --> Click on Run and then click on Run Module
(Shortcut is F5)
Step 5: You should be able to see a square drawn in the output window
(Python Turtle Graphics)
---------
Step 6: Create a new file and type a program to draw a rectangle.
Also, execute it :) and see the output.
Step 7: Create a new file and type a program to draw a triangle.
Also, execute it :) and see the output.
You are done with the session :)
----------
Session #01: Mon, 7 Dec 2020, 8pm to 9.30pm
What were the theory topics covered?
--> Download and install Python Idle from python.org
--> import turtle - which is a module which is used to draw graphics
--> functions are set of statements performing a task
--> functions - forward(), left(), pensize()
--> arguments - are values that are passed inside the brackets
--> calculate exterior angle in a polygon by using the formual 360/n
where n is the number of sides.
What were the programs done?
#1. Python program to draw a square
#2. Python program to draw a rectangle
#3. Python program to draw a equi-lateral triangle
What are the assignments?
#1. Program to draw a pentagon
#2. Program to draw a hexagon
#3. Program to draw a heptagon
#4. Program to draw a octagon
#5. Program to draw a Nonagon
#6. Program to draw a decagon
#7. Program to draw a stage with staircase
How to submit the assignment?
Upload the all the seven ( .py) files into google classroom.
You can join the google classroom using this link
https://classroom.google.com/c/MjE0NzU3Mjc4NDY1?cjc=hz6ejag
What is the due date for submitting assignments?
Four Hours before the next class.
When is the next class?
Wed, 9 Dec 2020, 8pm to 9.30pm
Where will the class recording be available?
https://techsparx-digital.teachable.com/courses/esoc43-python-level-1-for-grade-7-8/lectures/27607705
0 comments