Using loop. for i in range(5): print("My name is abcd.")
Without using loop. print("My name is abcd.\n"*5) When strings are multiplied with any number (n) , the new string formed becomes the original string repeated n times.
2. Using loop. for i in range(5): print("My name is abcd.")
3. Without using loop. print("My name is abcd.\n"*5) When strings are multiplied with any number (n) , the new string formed becomes the original string repeated n times.
Answers & Comments
Hi bor I am so..
happy I am in Genisus
Solution:
Here comes the program.
Using loop. for i in range(5): print("My name is abcd.")
Without using loop. print("My name is abcd.\n"*5) When strings are multiplied with any number (n) , the new string formed becomes the original string repeated n times.
Answer:
Solution:
1. Here comes the program.
2. Using loop. for i in range(5): print("My name is abcd.")
3. Without using loop. print("My name is abcd.\n"*5) When strings are multiplied with any number (n) , the new string formed becomes the original string repeated n times.