34.3k views
1 vote
1. Create a function called count_to_three() , remember the colon.

2.Indented inside the function add the print() function three times to output the
words "One" "Two" and "Three"
3.Outside the function add a line to call the function

1 Answer

6 votes

Answer:

This program is written using Python programming language

The program doesn't make use of comments

See attachment for proper format of the program

def count_to_three():

print("One")

print("Two")

print("Three")

count_to_three()

Step-by-step explanation:

The first line of the program defines the function count_to_three() with no parameters, passed to it

Line 2 to 4 of the program is indent and each line make use of print() function

Line 2 prints "One", Line 3 prints "Two" and Line 4 prints "Three" without quotes

The last line of the program calls the defined function

1. Create a function called count_to_three() , remember the colon. 2.Indented inside-example-1
User MetalBearSolid
by
3.8k points