Tuesday 4 October 2022

Print without new line in Python 3.x

 Today i will share you about, how to print array in python 3 without newline.

Following example of script :


a = ['i', 't', 'h']

for i in range(len(a)):
    print(a[i], end =" ")

Then Output :

  i t h 


Thanks for your visiting, hope its useful.

No comments:

Post a Comment