How to defined this function to print 25 new lines | Sololearn: Learn to code for FREE!
0

How to defined this function to print 25 new lines

def new_line(): print('.') def three_lines(): print() new_line() new_line() new_line()

20th Apr 2021, 10:58 AM
Gwakchang💻
Gwakchang💻 - avatar
4 ответов
+ 2
Using loops
20th Apr 2021, 11:09 AM
Sâñtôsh
Sâñtôsh - avatar
+ 2
for x in range(25): new_line()
20th Apr 2021, 11:09 AM
Kayra Akpınar
Kayra Akpınar - avatar
+ 2
print("something\n" * 25)
20th Apr 2021, 11:34 AM
Steven M
Steven M - avatar
+ 2
it can easy to using for loop for this.
20th Apr 2021, 1:23 PM
Fateme Ghasemi
Fateme Ghasemi - avatar