How to Print

Simple printing method for printing/showing the result of python code.

# simple printing
print('hello')

# adding \n for printing value in next line
print('nextLine printing \nthis will be on next line')

# print function with tab - TAB option (using tab space)
print('Printing with space \tThis text is using tab space')

#let's use + in print -- 
print('string1'+'string2')
print('string '*3) # print 'string' 3X times

More examples,

a,b = 1,2
print(a,b)
print(a,b,sep=',') # using separator attribute
print(192,168,1,0,sep=':') # we can use it to show ip address
print('hello',end='') # this will end the method by removing the default \n nextline to none
print('hello',end='\t')# this will end the method by removing the default \n nextline to \t tab space
print('=ending with tab space')