Break a long line into multiple lines in Python

Python

import modules

import pandas as pd
import numpy as np

Using ( )The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces.

def print_something():
    print ('Look at us,', 
    'printing this sentence on multiple lines.')

print_something()
Look at us, printing this sentence on multiple lines.

Using \

#here we are putting multiple conditionals for our if statement on separate lines
z=99

if z <100 or \
    z > 0:
    print('True')
True