Computers and Technology
Computers and Technology, 04.03.2021 01:00, Perez9126

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, jabezslade22
What is the first view you place in your drawing?
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, SundaeSunday
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_balance should be removed since header files should not contain constants. c)the definition of cashregister should be removed since header files should not contain class definitions. d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
image
Computers and Technology, 22.06.2019 21:30, elsauceomotho
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, juliemiddleton05
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
Do you know the correct answer?
Can you please answer these two questions from 8.7 Lesson Practice in edhesive 1.Considering the fo...

Questions in other subjects:

Konu
Arts, 25.06.2021 04:40
Konu
History, 25.06.2021 04:40