1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stells [14]
3 years ago
14

What is the output of the following program? for num in range(4): print (num * 2)

Computers and Technology
1 answer:
kolezko [41]3 years ago
6 0

The range() function with one parameter defaults to a starting value of 0 and has an ending value of the number specified exclusive.

range(4) is all the integers between 0 and 4 not including 4.

for num in range(4):

   print(num*2)

The output would be 0 2 4 6 all on separate lines.

You might be interested in
On a digital clock the displayed time changes constantly (True or False)
Vlada [557]
The answer is true as it will change on its own
8 0
4 years ago
Write a program that reads a sequence of up to 20 pairs of employee names and IDs. Store the data in an object designed to store
sladkih [1.3K]

Answer:

The code will be in Python3

you will have to enter the number of employee data and it will display all the data entered in the correct format.

Explanation:

class Solution:

   def __init__(self):

       self.firstName=""

       self.lastName=""

       self.employeeID=0

   def getData(self):

       self.firstName=input("please enter your first name: ")

       self.lastName=input("please enter your last name: ")

       self.employeeID=input("please enter your ID: ")

   def showData(self):

       p="{}\t{}\t{}".format(self.firstName,self.lastName,self.employeeID)

       return p

num=int(input("please enter the number of employee data you want to enter: "))

data=[]

for i in range(num):

   t1=Solution()

   t1.getData()

   data.append(t1.showData())

for i in data:

   print(i)

7 0
3 years ago
You use webshot to create desktop slide shows for your personal screen saver. Your boss asks you to display your screen so that
FrozenT [24]
I believe _B_ but check the national copyright law.
8 0
3 years ago
Read 2 more answers
Describe how BIM software is important to building and
Bad White [126]

Answer:

hhhvhvhjjjuiiiiioioo

3 0
3 years ago
To display data in a certain manner, like alphabetical order, is called
taurus [48]

Answer:

D. Sorting

hope this helps!

6 0
3 years ago
Other questions:
  • Create a Flash Card class. Flash Cards have a Question and an Answer, each of which are Strings. Your class should include a con
    6·1 answer
  • Why does fiber optic communication technology have a significant security advantage over other transmission technology? higher d
    6·1 answer
  • Which one of them are the correct answers?
    7·1 answer
  • Use rounding to decide if the answer is reasonable. Write
    15·1 answer
  • Online transaction processing (OLTP) and online analytical processing (OLAP) are similar MIS strategies used to help with busine
    9·1 answer
  • Write a Java program that prints out a 4x4 square (like the one below)
    11·1 answer
  • who thinks homework is anoyying? (freddy randomly started thinking scince he was the leader he caould start acting like a teache
    8·2 answers
  • LaShawn would like to post photos in a social media app, but the program needs to be modified in order to display a greater vari
    12·2 answers
  • How do you refer particular cell?<br>​
    12·1 answer
  • This is a standard routine used to perform a mathematical task in excel is called?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!