Python - Input and Output
How can you print multiple lines without extra blank lines using
print()?print()?sep='\n' between multiple values prints each value on a new line without extra blank lines.end='' suppresses newline after print but does not add newlines between values. Multiple print calls add extra blank lines. end='\n' is default and adds newline after print.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions