osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cleaner version of variable, new line


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