0
Hello guys how can I make my integer after multiplying my string to print it in new different lines
Thanks
6 odpowiedzi
+ 2
the plus sign is used to add new line character at the end of the string.
0
if i understood correctly, you want to multiply your string and make every copy in the new line. if that is the case:
string = "pumpkin"
print((string + "\n")*3)
this way you are multiplying your string and the end of the line which will make a multiline string.
0
Thanks RedAnt why the + sign
0
Okaaay now I get you we add \n just like a string but it will function the way its supposed to cool.
0
Ooh sure seems you good at python
0
Dude where are you from being a hacker doesn't mean am fluent with every programming language and this is not a place where you use bad language this is like a classroom you understand??