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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, mjweed3381
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
image
Computers and Technology, 23.06.2019 07:00, schvox
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
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 in other subjects:

Konu
Mathematics, 22.10.2020 07:01
Konu
Mathematics, 22.10.2020 07:01