2.2 Code Practice Question 1
Earsketch
Earsketch Tutorial
Online Python Compiler
Digital Textbook
Python Code Visualizer
100 Days of Code
Nov 4
We go along with 11.2 Lesson Exercise. And then we move on to 11.three Packets and Routers. Lesson eleven.three, Packets and Routers, provides insight on how communication between systems is accomplished using packetized information and the fashion this information is routed through the internet.
November 3
Today we volition accept Test 9. The admission lawmaking is turnip. So nosotros will move to 11.1 What is the Cyberspace? In Unit of measurement 11, we are going to move away from Python and explore the world of the internet. You'll learn the rules that govern the internet and keep information technology running, the types of attacks the internet faces daily such equally hacking and Distributed Deprival of Service attacks, and how the internet is protected and kept running. We'll too cover how the cyberspace can exist accessed wirelessly through the use of radio waves.
Nov two
Next is Consignment 9: Matrices. In math, a 2D list or array of numbers is chosen a matrix (matrices plural). Create and initialize a v x five 2D list to match the matrix below.
0 two 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 two 0 0 2
November 1
Now nosotros volition try nine.half dozen Animating with second Lists. As we've seen before, tracing code allows u.s.a. to think through the steps in a program and predict the outcome without really running the program. Not but can tracing code assistance us discover errors in our own code, but it also helps us understand code written past another person. In this lesson, we will make changes to the program we looked at in the last lesson and then that nosotros can produce a simple animation.
Apply the programming environment on the 9.half dozen Lesson Page to write code for a digital image of your choosing. You can utilise the code we learned in Lesson 9.6 equally a foundation. Open up a NotePad file and paste in the lawmaking from Lesson 9.6, and then open the html color picker and add boosted colors. Paste your code into the 9.6 environment and run it.
When yous're fix to start coding, return to Lesson 9.6 and begin writing your code in the programming environs there. Add colors, motility, and elements of your choosing. In one case you've got an animation you're happy with, save and re-create your code in your G-Bulldoze. So, share your program with me here.
Oct 31
Use the programming environment on the 9.5 Lesson Page to write code for a digital epitome of your choosing. You can utilize the code we learned in Lesson 9.5 as a foundation. Open a NotePad file and paste in the lawmaking from Lesson nine.v, and so open the html color picker and add boosted colors. Paste your code into the 9.five environment and run it.
When you're ready to start coding, return to Lesson ix.5 and begin writing your code in the programming environment at that place. Add colors and elements of your choosing. In one case you've got an image y'all're happy with, save and re-create your code in your Grand-Drive. And so, share your program with me hither.
Oct 28
Nosotros finish the calendar week with Quiz 9. The admission code is bamboo. Then we will move to 9.iv Algorithms with 2d Lists In this lesson, we're going to acquire how to utilise for loops to process 2D lists. In this example, we'll need two for loops: one to handle the rows, and one to handle the columns.
Oct 27
We will pick up with 9.two Code Practice. Then nosotros will move to 9.3 Loops with 2D Lists In this lesson, nosotros will code diverse algorithms that can work with 2D lists. The code we create will allow users to create diverse-sized 2d lists, fill a second listing with random numbers, bandy rows in a 2D listing, swap columns in an 2D listing, and sum upwards the values in a column of the second list. By using functions and parameters, users can easily target the specific rows, columns, or sizes of 2D lists that they would like to work with.
October 26
Today we will have Exam 8. Then nosotros will move to nine.1 What is a 2D List? In Unit of measurement 9, we're going to cover two-dimensional lists. We can use 2d lists to shop information that is organized in a grid or a tabular array.
Oct 25
Today is Assignment 8: Birthday Organizer. In this programme, you volition create a altogether organizer. You volition ask the user for the name of a person and the calendar month they were born, along with the day and year they were built-in. If the user incorrectly enters 1 of those values, a default value is set instead. The user can do this for as many friends as they would like. This assignment is worth 20 points, so yous will have to debug every bit best yous can before you submit it.
Oct 24
Side by side is eight.10 Writing a Simple Sort. In this lesson, you volition acquire to write a elementary sort and the basics of how to rearrange data in a list.
Oct 20
The Whale List
Go to List Items - Data Types. Copy the lawmaking beneath and paste information technology into the Try It Yourself window. Then add the code in the image and run it.
proper noun = ["whale1", "whale2", "whale3", "whale4", "whale5", "whale6", "whale7", "whale8", "whale9", "whale10", "whale11", "whale12", "whale13", "whale14", "whale15", "whale16", "whale17", "whale18", "whale19", "whale20", "whale21", "whale22", "whale23"]
ten = [-67.43928,-68.51367,-68.4956,-67.9487,-63.41219,-63.2847,-63.44392,-63.26444,-62.21766,-62.68708,-62.14266,-61.43989,-61.64667,-61.30743,-61.15596,-61.10747,-61.23049,-61.21565,-61.04606,-61.0237,-61.24702,-61.0493,-lx.91662];
y = [48.83191,48.67595,48.70041,48.81702,48.64912,48.57189,48.39717,48.40019,48.3109,48.37088,48.04738,48.09392,48.02449,48.07909,48.14254,48.08245,48.34054,48.01869,48.04373,47.91508,48.18848,47.83466,47.35136];
Whale Listing
Oct 19
We proceed with 8.8 Sorting and Searching. In this lesson, nosotros'll accept some other wait at algorithms and go introduced to 2 of the most important algorithms used in estimator programming: searching and sorting. Subsequently this lesson, you'll be prepared to write your ain programs that include searching and sorting algorithms in the next two lessons.
What is an algorithm and why should you care?
A guessing game
Sorting
Choice Sort Pseudocode
October 17
We begin the week with 8.5 List Methods. In this lesson, we'll learn several of the basic methods that deal with lists in Python. Then nosotros can accept Quiz viii. The access code is thunder.
Oct 14
Adjacent in Unit eight is 8.3 Element vs Index. In this lesson, we'll expect at how to populate a list with random numbers. We'll also learn how a listing alphabetize is related to list values, and nosotros will practice using a unmarried line of code to declare and fill, or initialize, a list.
Oct 13
We showtime Unit of measurement 8 with 8.1 What are Lists?. In this lesson, we'll learn almost a new type of variable chosen a list. As nosotros'll see, lists are variables that comprise more than than 1 slice of data.
October xi
We will start today with seven.six Tracing Code. In this lesson, we will wait at how we can trace the executable steps of a program to predict what information technology does, determine potential errors, and expose whatsoever limits the programme has in its execution. This volition make usa even better at debugging and evaluating our lawmaking. Then we will start Assignment vii: Calendar . For this assignment, you lot will create a calendar program that allows the user to enter a mean solar day, month, and twelvemonth in three carve up variables.
Oct ten
We begin Term 3 with 7.five Using Several Functions. In this lesson, we'll accept a look at how several functions tin be used together. We will practice coding examples to run across how several functions can exist used together to create a desired upshot.
Oct half dozen
We brainstorm today with Quiz 7. Then nosotros will starting time vii.4 Returning Values. In this lesson, nosotros will revisit strings from before in the form, and await at a variety of functions that can be applied to strings. We'll too learn how Python returns values from a office.
Oct 5
Nosotros will move on to seven.1 What Are Functions?. In this lesson, nosotros will be learning about functions (or subprograms), and how to create them. The terms "function" and "subprogram" announce the aforementioned thing. First, we review some common functions we've already used to understand how these simplify code writing.
Oct 4
At present that you've submitted your code, information technology's time to reflect on your work. Reflection is an essential function of computer programming, because it allows u.s. to await back on areas we are proud of, place areas of growth, and celebrate the piece of work nosotros've done. Afterward reflecting on your program, you'll likely know things you lot want to practice differently the adjacent time you commencement coding.
Respond the Reflection Questions by writing directly in a Google Doc. Make certain that you upload the completed questions in the submission link so that I tin can course them. The reflection questions are worth 5 points out of 20 total points for this assignment. Then we will take Test half-dozen. The admission code is radio.
Sep 29-xxx
Now nosotros become to Unit six Assignment: Animation, you will create a complex blitheness using the simplegui module in Python. Your animation should include diverse components that tie in everything you've learned in this unit.
This assignment is worth twenty points. 10 points will be earned based on the quality of the code you write, 5 points will be earned for successfully submitting a storyboard that outlines your plan for the animation, and 5 points will exist earned for submitting a reflection on your work.
Below, read over the assignment clarification and brainstorm to imagine what your animation could portray.
v circles
five polygons
5 line commands
2 for loops
1 global variable
This will probably take more than i day.
Sep 28
For the Unit 6 Consignment: Animation, you lot will create a circuitous animation using the simplegui module in Python. Your animation should include diverse components that tie in everything you've learned in this unit.
This assignment is worth twenty points. ten points will be earned based on the quality of the lawmaking you write, v points will exist earned for successfully submitting a storyboard that outlines your plan for the blitheness, and five points will be earned for submitting a reflection on your work.
Below, read over the assignment description and begin to imagine what your animation could portray.
5 circles
v polygons
5 line commands
ii for loops
1 global variable
This volition probably accept more than i day.
Sep 27
Next nosotros accept on 6.8 Animation. We've all played video games, which are a perfect example of how far we've come with figurer animation. Underneath all of that activity is code - lots and lots of it. To make everything work correctly, we need to beginning with variables. Let's larn more virtually basic animation using Python.
Sep 26
Today we volition take Quiz six. The access code is bagel. And then we off to Today we will have half dozen.7 Emojis. We meet these little graphics every twenty-four hours, and take for granted how they're created. Everything we see needs to be created past someone. In this lesson, that "someone" is you! We'll wait at how to create an emoji in Python, then you'll create your own.
Sep 22
At present we will work with 6.half dozen Circles. The sail.draw_circle() function is similar to what you've already done with the canvas.draw_polygon() and canvas.draw_line() commands: it'south simply a different shape. You volition detect these commands very helpful as you lot keep to work with graphics in your programs.
Sep 21
At present we larn to Draw a House. In this lesson, we're going to combine some of the drawing commands that we learned before, and use them to create a rough sketch of a house. Later on you understand the nuts, you will take the lawmaking that Dana uses and add new items to create a house of your ain in this lesson's Code Practice.
Sep twenty
We continue with 6.4 Lines. One of the nearly basic graphics that you lot will come across is a simple line. While it is a basic graphical element, it's still a footling more involved than drawing a line on a piece of newspaper. Where does the line offset? Where does it finish? What colour is it? In this lesson, nosotros'll bear witness yous how easy drawing a line tin can be. We volition also do an assignment in Google Classroom.
Sep xix
We start the calendar week with half dozen.iii X & Y Coordinates. Nosotros've done a lot of work with data, which is the backbone of about programs. But, sometimes we need to format that information into something that looks more visually appealing. Think about your math lessons, that utilise pie charts, graphs, and tables. Those visuals assistance readers better empathise the data they are looking at. Let's see how Python handles some basic graphics functions.
Sep 16
We continue with 6.two Colors and Loops. We live in a colorful world, and now we're going to add further color to the code we write! We'll use colour to the types of programming loops that we studied already. For this Lawmaking Exercise, we're going to leap over to an interactive Python site and learn most repetition with images. Once y'all've got the hang of repeating images, upload at to the lowest degree vi of your images to Google Classroom.
Sep 15
We start with Unit half dozen (we are skipping Unit 5) with vi.1 Color Code. Python isn't express to simply numbers or calculations. You can add colors to raise your programs and make them more interesting to your users.
Sep 13
We selection up with 4.9 Summing. In this lesson, nosotros will acquire well-nigh summing using a for loop.
Sep 12
We start Term 2 with 4.8 Counting by Other Than 1. We learned that the range part tin take different parameters: range(ten), range(x,y) and range(10,y,z). Permit's look at how a for loop uses these parameters to count by numbers other than one. Afterword, we volition accept Quiz 4. Access Lawmaking kiwi
Sep 9
Today nosotros look at a new role. 4.6 Range Role returns the sequence of the given number between the given range. The most mutual employ of it is to iterate sequence blazon (Python range() List, string, etc. ) with for and while loop using Python. Next, we'll await at For Loops.
Sep 8
Today we look at data again with 4.4 Information Revisited and a review of looping. We've learned how to use various forms of data in previous lessons. Now, we are going to harness that data using some of the techniques nosotros've recently learned. Earlier we motion on to more advanced forms of loop, like the for loop, let's pause to review what we've learned and then far. In this lesson, nosotros'll elaborate on how while loops tin be used in our code and review key vocabulary.
Sep 6
Today nosotros take Test 3. The access code is hobby. Then information technology'south on to 4.ane Loops. Sometimes, there will be actions that we need to be performed over and over again. But, copying and pasting those commands several times is not the most efficient way of doing things. If we want to save time and effort, how tin nosotros streamline our code?
Sep 2
We'll do Assignment iii: Chatbot. A chatbot is a figurer programme designed to emulate human chat. For this programme, you will use if statements, user input, and random numbers to create a bones chatbot.
The Scenario
Yous have decided to design a fashion chatbot that helps people option out their fashion preferences. Your bot can gauge what types of dress and accessories the user might similar.
Your chatbot should enquire the user the following (minimum requirements for the grader) and then give answers depending on the answers the user inputs:
at least six questions
at least three if-elif-else statements
the use of the random module and randomly generated numbers
Sep 1
Today we take Quiz 3. The access lawmaking is cardigan. Then it's on to iii.6 Defining Algorithms. Nosotros've been using algorithms for most of our lives, but never defined those activities in that manner. Algorithms are just a set of steps or instructions used to solve a problem or accomplish a chore. You could make an algorithm out of all the activities yous performed today earlier starting this lesson. And then, how practice we use algorithms to Python?
Aug 31
We proceed Unit 3 with 3.4 If – Else. We know how to use the if statement - still, it tin be a burden to write a split up if statement when we are only trying to write lawmaking for when the initial statement fails. In these cases, the if-else statement lets us write lawmaking for the failing scenario with ease.
Aug 30
We get-go Unit iii with 3.2 Simple Ifs. What happens when y'all utilize the "if" statement in your code? "If" acts equally a gateway to farther actions. If something is truthful, then the program does something. If it's not true, and then it skips over that office and moves on in the program.
Aug 29
Nosotros kickoff the week with Assignment 2: Room Area. For this lab, you will find the expanse of an irregularly shaped room with the shape every bit shown higher up. Inquire the user to enter the values for sides A, B, C, D, and E and print out the total room area. Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base of operations * height. Please note the final area should be in decimal format.
Aug 26
We are going to talk about ii.6 Large Data. Large Data are sets of data that are so big or circuitous that traditional data processing (calculators, spreadsheets) aren't capable of dealing with them. But, with the advances in retentiveness and processing ability, nosotros can chop-chop turn this data into valuable resource for united states of america to apply.
Aug 25
Today we acquire most random numbers. Generating Random Numbers is a lot like rolling dice. Every time you curl, you tin get a different number between 1 and half-dozen. In Python, you're non express to a fixed set up of numbers. And with the random module that nosotros'll wait at in this lesson, y'all're not limited to numbers at all, simply can use other values also. Then we will take Quiz 2. The access code is love apple.
Aug 24
We'll finish upwardly with 2.iii Code Practise, then motion on to 2.4 Built-in Functions. Generating random numbers is a lot like rolling die. Every time you gyre, you tin can get a dissimilar number betwixt 1 and 6. In Python, yous're non limited to a fixed prepare of numbers. And with the random module that we'll look at in this lesson, you're non limited to numbers at all, but can use other values too.
Aug 23
Today we learn a new kind of sectionalization. 2.3 Modular Partition . In this lesson, we'll learn a new way to do division, that focuses on the residuum after two numbers are divided. Nosotros'll showtime with a few examples of how we utilise modular division and explain why we should care about remainders.
Aug 22
Today we python into a calculator. 2.two Bones Calculations . In this lesson, we will learn how Python handles number calculations, the rules for basic operations, how parentheses are used in Python, how to utilise exponents, and the order of operations.
Aug 19
Today we will take Test ane. Admission Code salmon
Afterward the test, nosotros will jump to two.1 Computer History. In this lesson, we will learn well-nigh the history of computers and explore how technology has evolved over time.
Aug 18
Nosotros move on to ane.9 Understanding Binary. For many of your classes, you may shop information by writing notes into a notebook. But, how does a computer store information it receives? In this lesson, we'll explore binary code, the system that computers use to store data. And then nosotros will jump to Assignment 1: Silly Sentences. We'll write a program that will ask the user for a serial of words. Then plug them into our paragraph template. Write a program that will ask the user for a series of words. And then plug them into our paragraph template.
Aug 17
Nosotros continue with 1.8 Analog vs. Digital. In this lesson, we volition look at information and how computers process the data we input.
Aug 16
We will kickoff with 1.seven Data Types and Variables. Y'all may have heard the give-and-take variable in a math class earlier. In this lesson, nosotros will learn how Python handles different types of data and variables, and how it stores that information.
Aug 15
We move on to 1.half dozen Input. In the previous lesson, we learned virtually information computers send out to the user. In this lesson, we will larn nearly the information that users ship into the computer. We'll also study variables and how they're used in Python.
Aug 12
We will stop the week with 1.5 Output There will exist some videos, a lesson practise (quiz), and then Code Practice.
Aug 11
We will keep with 1.4 Hardware and Software There volition exist some videos, a lesson practice (quiz), and then we'll leap to 1.4 Code Exercise: Question 1.
Aug x
We will begin with 1.ane What is Computer science? In that location volition be some videos, a lesson practice (quiz), and then we'll do the lawmaking practice.
Aug ix
Sign in to your online accounts
Become to Project STEM sign up with your schoolhouse email account. Then join our grade, course code 0541fd
Then, become to Google Classroom and join class cyhfg2s
I don't know how much nosotros will use Classroom, merely nosotros'll set it upwards just in example.
I also desire you to create a document in your Google drive named Python Notes. From time to time I'll inquire you to add together to information technology.
Next go to Welcome to the course.
Then, nosotros'll look at a short video called Code Stars.
CS Python Fundamentals is an introductory-level form for students brand new to programming and computer science. In this course, yous will learn trouble-solving strategies, software design, and the foundations of informatics. You'll do then using two primal tools: the Project STEM programming environment and EarSketch, a software package that turns your lawmaking into music.
Not only will this class prepare you for continuing your studies in calculator science (for example, past taking AP Informatics A and AP Reckoner Science Principles), merely information technology volition also teach you how to retrieve like a scientist and solve real-world issues, skills that are of import to every 21st-century citizen.
There are no prerequisites for this course, although yous should accept basic familiarity with how to operate a computer and use applications. It's besides recommended that you take familiarity with basic algebra principles before starting this course.
Click here for the course syllabus.
This piece of work is licensed nether a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
2.2 Code Practice Question 1,
Source: https://im8x10.com/bowman/introAssignments.html
Posted by: guzmanjudid1974.blogspot.com

0 Response to "2.2 Code Practice Question 1"
Post a Comment