Computers and Technology

My uh coding teacher would like the class to do little piggy with code. Write code using def to create functions so that each line is printed in its own function. Turn in a gdb link so I can grade it.

This little pig went to the market.

This little pig stayed home.

This little pig had roast beef.

This little pig had none.

This little pig cried wee wee wee all the way home.

here's a example from him but i don't understand it

import time

def myFunction():

print('In the function called my function')

time. sleep(2)

def yourFunction():

print('In the function called your function')

time. sleep(2)

#MAIN

print ('In the main part of the program')

time. sleep(2)

myFunction()

print ('Back in the main')

time. sleep(2)

yourFunction()

print ('Back in the main after your function')

please help if you can

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, ozzy55
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
image
Computers and Technology, 22.06.2019 22:30, hmontalvo22
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, jack487
How can a user delete a drawing object
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, uday50
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
Do you know the correct answer?
My uh coding teacher would like the class to do little piggy with code. Write code using def to cre...

Questions in other subjects:

Konu
Mathematics, 23.03.2020 23:04
Konu
Physics, 23.03.2020 23:05