Ask Question

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 (".").

+3
Answers (1)
  1. 15 June, 21:00
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers