Followers

Wednesday, 16 November 2022

Program to print muliple copies of string

In python we use "*" operator to create multiple copies of string. For example if we want a string value to be displayed  more than 1 time, we can use 

Syntax: string_var * n  where n = number of times to be printed

Reference of the code run in JupyterLab


No comments:

Post a Comment