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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 24.06.2019 19:30, luckye
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, corinnerodriguez2001
How to delete a question in
Answers: 2
image
Computers and Technology, 25.06.2019 05:10, Aaraar
Maia notices that her paragraphs are too close to one another. she wants to increase this space. which arrangement of steps does maia follow after she goes to the paragraph command group in the ribbon? type in the space needed, go to the after menu, go to the spacing part of the box, and open the paragraph dialog box. go to the spacing part of the box, go to the after menu, open the paragraph dialog box, and type in the space needed. open the paragraph dialog box, go to the spacing part of the box, go to the after menu, and type in the space needed. type in the space needed, open the paragraph dialog box, go to the after menu, and go to the spacing part of the box.
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 in other subjects: