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, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 24.06.2019 00:40
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
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
Social Studies, 03.01.2022 18:30
question
English, 03.01.2022 18:40
question
Mathematics, 03.01.2022 18:40
question
Mathematics, 03.01.2022 18:40
question
Mathematics, 03.01.2022 18:40
question
English, 03.01.2022 18:40
question
Mathematics, 03.01.2022 18:40
question
English, 03.01.2022 18:40
question
Mathematics, 03.01.2022 18:40
Questions on the website: 13722362