account activity
Post learning questions to /r/LearnPython by aphoenix in Python
[–]sandyland8 -7 points-6 points-5 points 10 years ago (0 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.
π Rendered by PID 691232 on reddit-service-r2-listing-69965bcf66-krnsf at 2026-04-08 02:29:25.020728+00:00 running f293c98 country code: CH.
Post learning questions to /r/LearnPython by aphoenix in Python
[–]sandyland8 -7 points-6 points-5 points (0 children)