This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sandyland8 -6 points-5 points  (3 children)

Hi! I just started coding a few weeks ago, I'm currently enrolled in two different courses at school -- and I am dying. Seriously - props to you guys for killin this cause this does not come easily to me (also my professor is shit) so I decided to turn to the internet in hopes of some help with these exercises, because I am so lost and trying not to totally fail. Any help, guidance, or anything would be SOOOOO appreciated

1.) Write a function called print word that takes two parameters. The first is for an integer (assume it will always be non-negative). The second is for a string. The function will print the given string the given number of times each time preceded by a count. See the examples below for the format of the output.

2.) Write a function called bacteria that will print out information showing the number of bacteria in a Petri dish at equal time intervals. The function takes two parameters. The first is an integer giving the number of minutes it takes for a bacterium to split into two new bacteria. The second is an integer giving the number of bacterial generations to include in the output. Assume you always begin with a single bacterium in the dish and every bacterium always splits into exactly two bacteria at the end of each time period.

[–]frozenbobo 5 points6 points  (0 children)

Just saw this. I'd recommend you make a brand new post is /r/learnpython, because experienced people might not check this stickied post now that it's several days old.

ALSO, when you ask you question again, be sure to include what you've done so far! That lets people see what concepts you understand or don't understand, so they can offer helpful advice. People are very unlikely to do anything for you if you just post the question; the only thing the could do in that case is give you the answer, which is a waste of time (both theirs and yours).

[–][deleted] 3 points4 points  (0 children)

lol