subject

Can you please answer these two questions from 8.7 Lesson Practice in edhesive 1.Considering the following code:

x = [1,0,6,3]
y = [5,8,1,2]

for i in range(len(x)):
print("(" + str(x[i]), + "," + str(y[i]) + ")")
This code prints out (x, y) coordinate pairs.

It is an example of using arrays.

2.Consider the following code:

words = ["This", "is", "a", "sentence"]

for i in range(len(words)):
print(words[i])
What does this code do?

Print out, on separate lines, the characters of each word in the list
B. Print out, on separate lines, each word in the list
C. Print out, on separate lines, the characters of the first word in the list
D. Print out, on separate lines, the lengths of each word in the list

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 25.06.2019 05:00
Brad wants to buy flowers for his friend with 33 dollars.the daisies are 1 dollar each and the roses are 2 dollars each he buy 3 more daisies than roses how much did the roses cost
Answers: 2
question
Computers and Technology, 25.06.2019 12:30
The term used to describe the shape and layout of a computer component such as a motherboard or hard drive is __ factor?
Answers: 1
You know the right answer?
Can you please answer these two questions from 8.7 Lesson Practice in edhesive 1.Considering the fo...
Questions
question
Chemistry, 08.10.2021 19:30