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, 21.06.2019 20:50, solo4360
What does operator overloading allow you to do?
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, Cheflulu5727
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarl y if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, andrespacheco5888
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
image
Computers and Technology, 24.06.2019 08:30, ladybuggirl400
@josethesolis i need can anyone text me and follow me
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: