Ask Question
9 May, 18:10

Write a definition of the function printDottedLine, which has no parameters and doesn't return anything. The function prints to standard output a single line consisting of 5 periods (".").

+5
Answers (1)
  1. 9 May, 19:06
    0
    The solution code is written in Python

    def printDottedLine () : print (" ... ")

    Explanation:

    A function printDottedLine () is defined (Line 1). The bracket is left empty since this function is not required to take any parameters. Besides, there is no return statement inside the function as it is not expected to return anything.

    Inside the function, print function is used to output a single line consisting of 5 periods as required by the question (Line 2).
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a definition of the function printDottedLine, which has no parameters and doesn't return anything. The function prints to standard ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers