cleaner version of variable, new line

asa32sd23 at gmail.com asa32sd23 at gmail.com
Thu May 24 20:50:53 EDT 2018


hi just seeing if there is a cleaner way to write this. 
 
s1= "kitti"
s2= 'kitti'
i= 3
print(s1+ "\n" + "="*i + "^" + "\n" +s2)

> 
kitti
===^
kitti



More information about the Python-list mailing list