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 cnucaptains that takes no arguments.
def cnucaptains:
Create a string that has one line per integer from to inclusive
Remember ranDefine a function called cnucaptains that takes no arguments.
def cnucaptains:
Create a string that has one line per integer from to inclusive
Remember range starts at so be careful
if the number is divisible by the line should be "CNU"
if the number is divisible by the line should be "CAPTAINS"
if the number is divisible by and the line should be "CNUCAPTAINS"
Otherwise, you should have the integer on the line.ge starts at so be careful
if the number is divisible by the line should be "CNU"
if the number is divisible by the line should be "CAPTAINS"
if the number is divisible by and 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
