Write the syntax.

1. for loop

2. while loop

3. function definition

4. function call

5. do while loop​

Answers

Answer 1

Answer:

Explanation:

The following syntax's are written in Python and perform a very basic arithmatic operation within the loop of call as an example

1.    for x in range(3):

       print(x)

2.    count = 0

      while True:

          print(count)

          count += 1

          if count == 4:

              return False

3. def next_pow2():

       return 3**2

4. next_pow2()

5. i = 1

while True:

   print(i)

   i = i + 1

   if(i > 3):

       break

#Python doesn't have an explicit do-while loop but can be emulated exactly as a do-while loop using the format written in answer 5.


Related Questions

Read the following examples, and decide whether each example describes a relational database or a flat
file. Use the drop-down menus to make your selection.
An author keeps track of income and expenses in a table:
A college admissions department stores detailed information about each applicant, including his or her
full name, address, high school, GPA, standardized test scores, intended major, and entrance exam
scores:
A social media website has many users who are allowed to upload photos, videos, and information about
themselves:
A library stores information about patron names, account numbers, books out on loan, the date books are
due, the date books are returned, the number of days a book is overdue, and overdue book fines; this
information allows the system to e-mail or call patrons to remind them to return books on time:

Answers

Answer: flat file, relational database, relational database, relational database

Explanation:

Edge

Answer:

1. flat file

2. relational detabase

3. relational detabase

4. relational detabase

Explanation:

on edg

Which type of data is shown below?
apple, 0.85
banana, 0.90
peach, 1.50

Answers

Answer:

dictionary data

Explanation:

data = {"apple" : 0.85, "banana" : 0.90, "peach": 1.50}

Question 3 5 points)
Which one is NOT a factor that impact the total cost of a tool or piece of equipment.

Answers

where are the choices?

_____ can be lost or stolen by cybercriminals. Select 2 options.

Free WiFi

Computer devices

Computer networks

Antivirus software

Portable devices

Answers

Answer:

Free WiFi

Computer networks

Explanation:

They cant really take your stuff they can only take virtual objects.

Free Wifi and Computer Networks
Other Questions
PLEASE HELP I WILL GIVE BRAINLESIST Joel rides bikes in his city There are 4 lengths of race tracks. Help with math hw please the price of a computer had a discount of 7,800 if the discount was 20% how much was the original price True or False: When you are passively listening, you are not hearing every sound around you Ano ang mga imumungkahi mong paraan upang higit na mapanatili ang kalinisan, kaayusan at kagandahan ng mga likas at makasaysyang lugar sa ating bansa? Translate the figure 3 units right and 7 units down. What are the coordinates of A'? Can some one please help with these questions please Why a hot cup if water has more thermal energy than a cold cup of water? Identify the vertex of the parabola and tell whether it is a minimum or a maximum. Please help I will give brainliest! I just need 22 and 23 please! Thank you! (And its related to ordered pairs by the way!) Given the equation y= -3x + 2.5 . When y is 8.5 , what value of x makes the equation true? i need help with this question Given m = -1/2 and the point (2, 1), which of the following is the point-slope form of the equation? Quadrilateral BCDE is inscribed in circle A. The measure of is 73. The measure of is 53 and the measure of is 102.Determine the measure of BCD. Before the clowns arrived, only 35 percent of the childrenwore happy faces. If 91 children did not wear happyfaces, how many children were there in all? What is plotted on the Y axisSpeedDistance or time Complete each statement by choosing the correct answer from the drop-down menu advancements in technology occur because _______ technology makes peoples lives more productive because ______ advancements in technology impact ____ ______ is not a reason why new technologies are introduced to a profession Andres buys a new scooter. He goes 8 Km north from the beach. He thentravels 5 Km to the east. Then chases a friend 8 Km north. What distancedid he cover?What was Andres's displacement? ANYBODY KNOW THIS ??? DUE TODAY