+ 1
Guys how to print two outputs in python using /n with no space at beginning
n=int(input()) print(n*1000,'\n',n*100000) When running this code there is a space in second output help please
3 Antworten
+ 4
print(str(n*1000)+'\n'+str(n*100000))
+ 1
Thank you
0
Another option is to use f-string (or string.format() for older versions).
print(f"{n*1000}\n{n*100000}")