Question: Define a function called cnu _ captains that takes no arguments. def cnu _ captains ( ) : Create a string that has one line

Define a function called cnu_captains that takes no arguments.
def cnu_captains():
Create a string that has one line per integer from 1 to 100 inclusive
(Remember, ranDefine a function called cnu_captains that takes no arguments.
def cnu_captains():
Create a string that has one line per integer from 1 to 100 inclusive
(Remember, range starts at 0, so be careful)
if the number is divisible by 2 the line should be "CNU"
if the number is divisible by 5 the line should be "CAPTAINS"
if the number is divisible by 2 and 5 the line should be "CNUCAPTAINS"
Otherwise, you should have the integer on the line.ge starts at 0, so be careful)
if the number is divisible by 2 the line should be "CNU"
if the number is divisible by 5 the line should be "CAPTAINS"
if the number is divisible by 2 and 5 the line should be "CNUCAPTAINS"
Otherwise, you should have the integer on the line.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!