8.0k views
1 vote
Write the definition of a function printDottedLine, which has no parameters and doesn't return anything. The function prints a single line consisting of 5 periods (terminated by a new line character) .

User Diyarbakir
by
5.2k points

1 Answer

5 votes

Answer:

See the short code Below

Step-by-step explanation:

Let us implement the code with Python programming language

def printDottedLine ():

print("..... "\\) # this line will print 5 dots

User SteveGoob
by
6.6k points