subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
What are the different components of the cloud architecture?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
question
Computers and Technology, 25.06.2019 01:30
Why is the most liked picture on instagram an eggy? owo
Answers: 1
You know the right answer?
My uh coding teacher would like the class to do little piggy with code. Write code using def to cre...
Questions
question
Mathematics, 10.07.2019 01:30