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, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
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
Questions on the website: 13722363